[Issue 1039] DMD hangs with 100% CPU

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 29 21:54:37 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=1039


unknown at simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown at simplemachines.org
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #2 from unknown at simplemachines.org  2009-03-29 23:54 -------
This appears to be resolved in (or earlier than) DMD 1.041 and 2.026.

It now shows this error message and exits properly:
module2.d(12): constructor module1.SecondClass.this () does not match parameter
types (FirstClass)
module2.d(12): Error: expected 0 arguments, not 1
module1.d(8): constructor module1.SecondClass.this no match for implicit
super() call in constructor

It compiles fine if I add an explicit constructor to SecondClass calling
super(), which I assume is a covariance issue.  If that is a bug it should be
filed separately.

-[Unknown]


-- 



More information about the Digitalmars-d-bugs mailing list