www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16316] New: [REG 2.071] (Import deprecation) fully qualified


          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 puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
template imp()
  static import core.stdc.stdio; // also w/o static

mixin imp!();

void test()

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

Jul 24 2016