# HG changeset patch # User thomask # Date 1175790918 0 # Node ID 0767a3cee5f2aecc3d6e69d6ab77b59d2e6d7eff # Parent c9244d89796e382b8960d1bb0fb9006b64f05056 [Issue 928] nested struct definition in unittest section of a templated class, hangs DMD Daniel (Zuu) 2007-02-03 http://d.puremagic.com/issues/show_bug.cgi?id=928 diff -r c9244d89796e -r 0767a3cee5f2 reporter.txt --- a/reporter.txt Thu Apr 05 16:33:59 2007 +0000 +++ b/reporter.txt Thu Apr 05 16:35:18 2007 +0000 @@ -45,6 +45,7 @@ Dan Daniel Daniel Horn +Daniel (Zuu) Dave david David Friedman , @@ -180,3 +181,4 @@ ? ? ? +? diff -r c9244d89796e -r 0767a3cee5f2 run/u/unittest_11_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/u/unittest_11_A.d Thu Apr 05 16:35:18 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Daniel (Zuu) +// @date@ 2007-02-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=928 +// @desc@ [Issue 928] nested struct definition in unittest section of a templated class, hangs DMD + +module dstress.run.u.unittest_11_A; + +class MinHeap(NodeType){ +} + +unittest{ + struct TestType { + } + MinHeap!(TestType) foo = new MinHeap!(TestType)(); +} + +int main(){ + MinHeap!(int) foo = new MinHeap!(int)(); + return 0; +} diff -r c9244d89796e -r 0767a3cee5f2 run/u/unittest_11_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/u/unittest_11_B.d Thu Apr 05 16:35:18 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Daniel (Zuu) +// @date@ 2007-02-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=928 +// @desc@ [Issue 928] nested struct definition in unittest section of a templated class, hangs DMD + +module dstress.run.u.unittest_11_B; + +struct TestType { +} + +class MinHeap(NodeType){ + unittest{ + MinHeap!(TestType) foo = new MinHeap!(TestType)(); + } +} + +int main(){ + MinHeap!(int) foo = new MinHeap!(int)(); + return 0; +} diff -r c9244d89796e -r 0767a3cee5f2 run/u/unittest_11_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/u/unittest_11_C.d Thu Apr 05 16:35:18 2007 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Daniel (Zuu) +// @date@ 2007-02-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=928 +// @desc@ [Issue 928] nested struct definition in unittest section of a templated class, hangs DMD + +module dstress.run.u.unittest_11_C; + +class MinHeap(NodeType){ + unittest{ + struct TestType { + } + MinHeap!(TestType) foo = new MinHeap!(TestType)(); + } +} + +int main(){ + MinHeap!(int) foo = new MinHeap!(int)(); + return 0; +}