cat > bug.d << CODE template imp() { static import core.stdc.stdio; // also w/o static } mixin imp!(); void test() { core.stdc.stdio.puts(""); } CODE dmd -c bug ---- bug.d(10): Deprecation: package core.stdc is not accessible here bug.d(10): Deprecation: module core.stdc.stdio is not accessible here, perhaps add 'static import core.stdc.stdio;' ---- While imports from mixin templates are no longer searched for unqualified symbols, the fully qualified name of the imported modules should still be available.
Commit pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b517d86ed55cccb7b33608ec3e22f0036462f445 fix Issue 16316 - FQN of imports in mixin template not accessible - this is also fixed by searching the importedScopes for accessible packages
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b517d86ed55cccb7b33608ec3e22f0036462f445 fix Issue 16316 - FQN of imports in mixin template not accessible