[Issue 928] New: nested struct definition in unittest section of a templated class, hangs DMD
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 3 12:01:28 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=928
Summary: nested struct definition in unittest section of a
templated class, hangs DMD
Product: D
Version: 1.004
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dkm4i1 at gmail.com
The following code seems to make the compiler do some endless loop, because of
the TestType definition.
______________________________________________________
void main()
{
MinHeap!(int) foo = new MinHeap!(int)();
}
class MinHeap(NodeType)
{
unittest
{
struct TestType {}
MinHeap!(TestType) foo = new MinHeap!(TestType)();
}
}
--
More information about the Digitalmars-d-bugs
mailing list