Bug 16316 – [REG 2.071] (Import deprecation) fully qualified name of imports in mixin template not accessible

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-07-24T10:45:00Z
Last change time
2016-08-01T19:54:37Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-07-24T10:45:07Z
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.
Comment #1 by github-bugzilla — 2016-07-30T01:15:05Z
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
Comment #2 by github-bugzilla — 2016-08-01T19:54:37Z
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