https://issues.dlang.org/show_bug.cgi?id=14118
Issue ID: 14118
Summary: dmd -v misses imports
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
let's create two files:
=== z00.d ===
module z00;
import z01;
void main () {
auto a = new A();
}
=== z01.d ===
module z01;
class A {
void test () {
import somethingcool;
}
}
now run
dmd -v -o- z01.d | grep import | grep something
the output is empty. no mention of `somethingcool` anywhere.
this bug makes rdmd fail if i'm importing some non-phobos modules in this
manner: as rdmd doesn't see the dependency, it doesn't add it to build list
and… oops.
--