[Issue 8858] New: DMD's -v option doesn't output dependencies with	imports inside functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Oct 20 10:49:49 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=8858
           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: thelastmammoth at gmail.com
--- Comment #0 from thelastmammoth at gmail.com 2012-10-20 10:49:48 PDT ---
this issue is the cause of issue
http://d.puremagic.com/issues/show_bug.cgi?id=8856 (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.
test.d:
module test;
import foo;
void main() { }
foo.d:
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:
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list