Bug 15434 – [REG2.068] object.d imports from rt (breaking inline builds)

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-12-11T10:51:00Z
Last change time
2015-12-27T17:07:04Z
Assigned to
nobody
Creator
yazan.dabain

Comments

Comment #0 by yazan.dabain — 2015-12-11T10:51:15Z
void main() { ModuleInfo m; foreach (_; m) {} } Errors: /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.
Comment #1 by petar.p.kirov — 2015-12-12T14:06:05Z
Thank very much for finding this issue! I encountered it one of my projects (~6000 LOC), but I did not manage to reduce it. This actually a regression, because it used to work with DMD <= v2.067.1.
Comment #2 by yazan.dabain — 2015-12-18T07:27:11Z
Comment #3 by code — 2015-12-27T15:15:15Z
Seems like this used to work b/c we did not inline library code until recently.