www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1220] New: circular dependency message for static this is missing file/line info

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1220

           Summary: circular dependency message for static this is missing
                    file/line info
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: torhu yahoo.com


a.d:
---
import b;

static this() { }
---

b.d:
---
import a;

static this() { }

void main() { }
---

c:\test\dmd b a
b.exe
Error: circular initialization dependency with module b

Would have been useful to have module 'a' mentioned in that message.


-- 
May 07 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1220


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |diagnostic





But it ought to be allowed if there isn't a circular dependency between each
constructor and the other module....


-- 
May 07 2007