Bug 14118 – dmd -v misses imports

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-03T15:35:00Z
Last change time
2015-02-03T15:36:41Z
Assigned to
nobody
Creator
ketmar

Comments

Comment #0 by ketmar — 2015-02-03T15:35:22Z
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.
Comment #1 by ketmar — 2015-02-03T15:36:20Z
sorry, "now run" should be: dmd -v -o- z00.d | grep import | grep something
Comment #2 by dlang-bugzilla — 2015-02-03T15:36:41Z
*** This issue has been marked as a duplicate of issue 7016 ***