Bug 1220 – circular dependency message for static this is missing file/line info
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-05-07T11:21:08Z
Last change time
2019-07-12T11:15:51Z
Keywords
diagnostic
Assigned to
No Owner
Creator
torhu
Comments
Comment #0 by torhu — 2007-05-07T11:21:08Z
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.
Comment #1 by smjg — 2007-05-07T15:15:27Z
But it ought to be allowed if there isn't a circular dependency between each constructor and the other module....
Comment #2 by razvan.nitu1305 — 2019-07-12T11:15:51Z