D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16316 - [REG 2.071] (Import deprecation) fully qualified name of imports in mixin template not accessible
Summary: [REG 2.071] (Import deprecation) fully qualified name of imports in mixin tem...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-24 10:45 UTC by Martin Nowak
Modified: 2016-08-01 19:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2016-07-24 10:45:07 UTC
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 github-bugzilla 2016-07-30 01:15:05 UTC
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 github-bugzilla 2016-08-01 19:54:37 UTC
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