Summary: DMD's -v option doesn't output dependencies with
                    imports inside functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-10-20 10:49:48 PDT ---
this issue is the cause of issue (import inside function
sometimes causes link errors)

I'm reproducing here Andrej Mitrovic's comment to the above issue:

DMD's -v option doesn't output dependencies when an import is
function local.

module test;
import foo;
void main() { }

module foo;
import bar;

bar.d is empty

$ dmd -c -v test.d
> import    foo   (foo.d)
> import    bar   (bar.d)

Now use a local import in foo.d:

module foo;
void loc() { import bar; }

$ dmd -c -v test.d
> import    foo   (foo.d)

DMD doesn't output the import to bar.d when using -v. That has to be fixed.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to