www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17991] New: ICE with imports without module

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

          Issue ID: 17991
           Summary: ICE with imports without module
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: temtaime gmail.com

Use empty files:

a/b/package.d
a/b/c.d


And one file:
a/e/f.d
import a.b, a.b.c;

Then it will crash.
If module a.b; and module a.b.c; are added to the files then it'll work

--
Nov 18