[Issue 782] New: Dmd crash with template class, alias, inheritance and severals files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 31 16:04:52 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=782
Summary: Dmd crash with template class, alias, inheritance and
severals files
Product: D
Version: 0.178
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: amaury.pouly at gmail.com
Here is the code:(2 files)
[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;
[/test2.d]
If I compile with:
dmd test.d test2.d
Then it crashes.
Some important facts about this issue:
-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
--
More information about the Digitalmars-d-bugs
mailing list