Bug 147 – circular imports break with -cov

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2006-05-19T22:48:00Z
Last change time
2014-02-15T13:21:11Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
shro8822

Comments

Comment #0 by shro8822 — 2006-05-19T22:48:41Z
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
Comment #1 by bugzilla — 2006-06-30T20:24:30Z
Fixed DMD 0.162