changeset 1178:8c922e000a6d

[Issue 402] New: compiler crash with mixin and forward reference Bradley Smith <digitalmars-com@baysmith.com> 2006-10-06 news:bug-402-3@http.d.puremagic.com/issues/
author thomask
date Fri, 06 Oct 2006 06:57:05 +0000
parents 6d34f92bff53
children 180f9d6a19e0
files nocompile/a/alias_39_A.d nocompile/a/alias_39_B.d
diffstat 2 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/a/alias_39_A.d	Fri Oct 06 06:57:05 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Bradley Smith <digitalmars-com@baysmith.com>
+// @date@	2006-10-06
+// @uri@	news:bug-402-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 402] New: compiler crash with mixin and forward reference
+
+// __DSTRESS_ELINE__ 21
+
+module dstress.nocompile.a.alias_39_A;
+
+template Foo(alias b){
+	int a() {
+		return b;
+	}
+}
+
+void test(){
+	mixin Foo!(y);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/a/alias_39_B.d	Fri Oct 06 06:57:05 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Bradley Smith <digitalmars-com@baysmith.com>
+// @date@	2006-10-06
+// @uri@	news:bug-402-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 402] New: compiler crash with mixin and forward reference
+
+// __DSTRESS_ELINE__ 21
+
+module dstress.nocompile.a.alias_39_B;
+
+template Foo(alias b){
+	int a() {
+		return b;
+	}
+}
+
+void test(){
+	mixin Foo!(y) y;
+}