[Issue 1039] New: DMD hangs with 100% CPU
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 07:51:35 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1039
Summary: DMD hangs with 100% CPU
Product: D
Version: 1.007
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: r.a3 at ntlworld.com
Compiling these files with "dmd module1.d" causes DMD to hang with 100% CPU
usage; it doesn't respond to ^C and needs to be killed with the task manager.
It's annoying!
--- module1.d:
import module2;
import module3;
class FirstClass: FirstInterface
{
mixin Template!(SecondClass);
}
class SecondClass: SecondBaseClass { }
void main() { }
--- module2.d:
import module3;
interface FirstInterface
{
SecondBaseClass func(ThirdClass);
}
template Template( TYPE )
{
TYPE func(ThirdClass)
{
return new TYPE(this);
}
}
--- module3.d:
abstract class SecondBaseClass { }
class ThirdClass { }
--
More information about the Digitalmars-d-bugs
mailing list