changeset 1351:68bba8897adb

[Issue 861] Using two typedefs of an undefined name in a class in a different module with import cycles causes DMD to hang Matti Niemenmaa <deewiant@gmail.com> 2007-01-20 http://d.puremagic.com/issues/show_bug.cgi?id=861
author thomask
date Wed, 14 Feb 2007 10:11:43 +0000
parents e44202fdb50b
children 69d5079a38aa
files nocompile/i/import_18_A.d nocompile/i/import_18_B.d nocompile/i/import_18_C.d nocompile/i/import_18_D.d
diffstat 4 files changed, 62 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/i/import_18_A.d	Wed Feb 14 10:11:43 2007 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-01-20
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=861
+// @desc@	[Issue 861] Using two typedefs of an undefined name in a class in a different module with import cycles causes DMD to hang
+
+module /*dstress.*/nocompile.i.import_18_A;
+
+import /*dstress.*/nocompile.i.import_18_B;
+
+typedef NONEXISTENT_NAME myTypedef;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/i/import_18_B.d	Wed Feb 14 10:11:43 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-01-20
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=861
+// @desc@	[Issue 861] Using two typedefs of an undefined name in a class in a different module with import cycles causes DMD to hang
+
+module /*dstress.*/nocompile.i.import_18_B;
+
+import /*dstress.*/nocompile.i.import_18_A;
+
+class UsesTypedefs {
+	myTypedef usesTypedef;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/i/import_18_C.d	Wed Feb 14 10:11:43 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-01-20
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=861
+// @desc@	[Issue 861] Using two typedefs of an undefined name in a class in a different module with import cycles causes DMD to hang
+
+module /*dstress.*/nocompile.i.import_18_C;
+
+import /*dstress.*/nocompile.i.import_18_D;
+
+typedef NONEXISTENT_NAME
+	myTypedef,
+	myTypedef2;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/i/import_18_D.d	Wed Feb 14 10:11:43 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-01-20
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=861
+// @desc@	[Issue 861] Using two typedefs of an undefined name in a class in a different module with import cycles causes DMD to hang
+
+module /*dstress.*/nocompile.i.import_18_D;
+
+import /*dstress.*/nocompile.i.import_18_C;
+
+struct UsesTypedefs {
+	myTypedef usesTypedef;
+}