[Issue 16316] New: [REG 2.071] (Import deprecation) fully qualified name of imports in mixin template not accessible

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 24 03:45:07 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16316

          Issue ID: 16316
           Summary: [REG 2.071] (Import deprecation) fully qualified name
                    of imports in mixin template not accessible
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

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.

--


More information about the Digitalmars-d-bugs mailing list