www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15434] New: object.d imports from rt (breaking inline builds)


          Issue ID: 15434
           Summary: object.d imports from rt (breaking inline builds)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: yazan.dabain gmail.com

void main()
  ModuleInfo m;
  foreach (_; m) {}

/usr/include/dmd/druntime/import/object.d(1500): Error: module minfo is in file
'rt/minfo.d' which cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import

The code above doesn't compile with -inline because ModuleInfo.opApply imports
from rt.

Pull request incoming.

Dec 11 2015