changeset 1504:805b24f2e33f

[Issue 1146] mixin + assert() crashes compiler <dheld@codelogicconsulting.com> 2007-04-14 http://d.puremagic.com/issues/show_bug.cgi?id=1146
author thomask
date Mon, 23 Apr 2007 18:01:54 +0000
parents 276623518fb1
children b0e88ac8bc7e
files nocompile/m/mixin_33_A.d nocompile/m/mixin_33_B.d nocompile/m/mixin_33_C.d
diffstat 3 files changed, 61 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/m/mixin_33_A.d	Mon Apr 23 18:01:54 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<dheld@codelogicconsulting.com>
+// @date@	2007-04-14
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1146
+// @desc@	[Issue 1146] mixin + assert() crashes compiler
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.m.mixin_33_A;
+
+template MetaString(String){
+	alias String Value;
+}
+
+void foo(){
+	alias MetaString!("2 == 1") S;
+	assert(mixin(S.Value));
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/m/mixin_33_B.d	Mon Apr 23 18:01:54 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<dheld@codelogicconsulting.com>
+// @date@	2007-04-14
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1146
+// @desc@	[Issue 1146] mixin + assert() crashes compiler
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.m.mixin_33_B;
+
+template MetaString(String){
+	alias String Value;
+}
+
+void foo(){
+	alias MetaString!("2 == 1") S;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/m/mixin_33_C.d	Mon Apr 23 18:01:54 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<dheld@codelogicconsulting.com>
+// @date@	2007-04-14
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1146
+// @desc@	[Issue 1146] mixin + assert() crashes compiler
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.m.mixin_33_D;
+
+template MetaString(String){
+	alias String Value;
+}
+
+void foo(){
+	assert(mixin(MetaString!("2 == 1").Value));
+}