D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15434 - [REG2.068] object.d imports from rt (breaking inline builds)
Summary: [REG2.068] object.d imports from rt (breaking inline builds)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-11 10:51 UTC by yazan.dabain
Modified: 2015-12-27 17:07 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description yazan.dabain 2015-12-11 10:51:15 UTC
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 ZombineDev 2015-12-12 14:06:05 UTC
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 yazan.dabain 2015-12-18 07:27:11 UTC
Pull request:
https://github.com/D-Programming-Language/druntime/pull/1450
Comment 3 Martin Nowak 2015-12-27 15:15:15 UTC
Seems like this used to work b/c we did not inline library code until recently.