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