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.