www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16435] New: Wrong error message for bad selective import

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

          Issue ID: 16435
           Summary: Wrong error message for bad selective import
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

% tree
.
└── a
    └── b
        ├── c.d
        └── f.d

2 directories, 2 files
% cat a/b/c.d 
module a.b.c;
import a.b.f : A;
% cat a/b/f.d 
import a.b.c;

% dmd a/b/c.d
a/b/c.d(2): Deprecation: a.b.c.A is not visible from module c
a/b/c.d(2): Deprecation: a.b.c.A is not visible from module c
a/b/c.d(2): Error: alias a.b.c.A recursive alias declaration

which really makes no sense...

--
Aug 27 2016