www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8858] New: DMD's -v option doesn't output dependencies with imports inside functions

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth 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: -------
Oct 20 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8858


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-01-11
19:14:58 PST ---
Caused by same issue as in 7016.

*** This issue has been marked as a duplicate of issue 7016 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 11 2013