[Issue 14118] New: dmd -v misses imports

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 3 07:35:22 PST 2015


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: nobody at puremagic.com
          Reporter: ketmar at ketmar.no-ip.org

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.

--


More information about the Digitalmars-d-bugs mailing list