Strange bug: dmd crash

Amaury Pouly amaury.pouly at gmail.com
Sun Dec 31 14:34:36 PST 2006


Hi,
I'm not sure it's the right place to say it but I found a strange
configuration where dmd(on windows XP) crashes.
Here is the code:
[test.d]
import test2;

abstract class UpperClass
{
}

[test2.d]
import test;

abstract class MiddleClass : UpperClass
{
}

class Generic(T) : MiddleClass
{
	T m_value=0;
}

alias Generic!(byte) GenericByte;

If I compile with:
dmd test.d test2.d
Then it crashes.
Some important facts about this "bug":
-if everything is coded is one file, dmd compiles well
-if I import test2 AFTER the declaration of UpperClass and NOT BEFORE,
  dmd compiles well
-if I remove "alias Generic!(byte) GenericByte;", dmd compiles well
-if I change "T m_value=0;" to "T m_value;", dmd compiles well
-if MiddleClass does not inherite from UpperClass or Generic inherite from
MiddleClass, dmd compiles well
When I say it compiles well of course, I mean without crashing :)
I'm using dmd v0.177



More information about the Digitalmars-d mailing list