Bug 928 – nested struct definition in unittest section of a templated class, hangs DMD
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-02-03T14:01:00Z
Last change time
2014-02-16T15:22:44Z
Keywords
ice-on-valid-code, patch
Assigned to
nobody
Creator
dkm4i1
Comments
Comment #0 by dkm4i1 — 2007-02-03T14:01:20Z
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)();
}
}