[Bug 147] New: circular imports break with -cov

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 19 20:48:42 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=147

           Summary: circular imports break with -cov
           Product: D
           Version: 0.156
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: shro8822 at uidaho.edu


With or without the -cov option, this compiles. However, the version with
–cov fails at _runtime_ with a circular reference error of some type.

<code file=a.d>
import b;
void main(){}
</code>

<code file=b.d>
import a;
</code>

thoughts:
--This should be detected at compile/link time (or maybe that’s no possible).
--There should be some way to control initialization loops. (how?)


tested on linux, assumed on others

originally reported back in Jan '06
http://www.digitalmars.com/d/archives/digitalmars/D/bugs/6059.html


-- 




More information about the Digitalmars-d-bugs mailing list