changeset 1469:0767a3cee5f2

[Issue 928] nested struct definition in unittest section of a templated class, hangs DMD Daniel (Zuu) <dkm4i1@gmail.com> 2007-02-03 http://d.puremagic.com/issues/show_bug.cgi?id=928
author thomask
date Thu, 05 Apr 2007 16:35:18 +0000
parents c9244d89796e
children 86c8a8d4694b
files reporter.txt run/u/unittest_11_A.d run/u/unittest_11_B.d run/u/unittest_11_C.d
diffstat 4 files changed, 73 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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			<ddaglas@gmail.com>
 Daniel			<Daniel919@web.de>
 Daniel Horn		<hellcatv@hotmail.com>	
+Daniel (Zuu)		<dkm4i1@gmail.com>
 Dave			<godaves@yahoo.com>
 david			<davidl@126.com>
 David Friedman		<d3rdclsmail_a_@_t_earthlink_d_._t_net>, <dvdfrdmn@users.sf.net>
@@ -180,3 +181,4 @@
 ?			<fp@fpx.de>
 ?			<jmjmak@utu.invalid.fi>
 ?			<mclysenk@mtu.edu>
+?			<torhu@yahoo.com>
--- /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) <dkm4i1@gmail.com>
+// @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;
+}
--- /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) <dkm4i1@gmail.com>
+// @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;
+}
--- /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) <dkm4i1@gmail.com>
+// @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;
+}