changeset 1143:868813e44edf

[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression Stewart Gordon <smjg@iname.com> 2006-09-16 news:bug-353-3@http.d.puremagic.com/issues/
author thomask
date Wed, 20 Sep 2006 19:11:06 +0000
parents 1a8e36e7f765
children afe5081510a3
files compile/o/opCat_21_A.d compile/o/opCat_21_B.d compile/o/opCat_21_C.d compile/o/opCat_21_D.d compile/o/opCat_21_E.d compile/o/opCat_21_F.d compile/o/opCat_22_A.d compile/o/opCat_22_B.d compile/o/opCat_22_C.d compile/o/opCat_22_D.d compile/o/opCat_22_E.d compile/o/opCat_22_F.d
diffstat 12 files changed, 180 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_A.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_A;
+
+const char[] a = null ~ "cat";
+
+static assert(a == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_B.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_B;
+
+const char[] a = "" ~ "cat";
+
+static assert(a == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_C.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_C;
+
+const char[] a = null;
+const char[] b = a ~ "cat";
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_D.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_D;
+
+const char[] a = null;
+const char[] b = "cat" ~ a;
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_E.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_E;
+
+const char[] a = null;
+const char[] b = "cat";
+const char[] c = a ~ b;
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_21_F.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_21_F;
+
+const char[] a = null;
+const char[] b = "cat";
+const char[] c = b ~ a;
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_A.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_A;
+
+const char[] a = "" ~ "cat";
+
+static assert(a == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_B.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_B;
+
+const char[] a = "" ~ "cat";
+
+static assert(a == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_C.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_C;
+
+const char[] a = "";
+const char[] b = a ~ "cat";
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_D.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_D;
+
+const char[] a = "";
+const char[] b = "cat" ~ a;
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_E.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_E;
+
+const char[] a = "";
+const char[] b = "cat";
+const char[] c = a ~ b;
+
+static assert(b == "cat");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opCat_22_F.d	Wed Sep 20 19:11:06 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg@iname.com>
+// @date@	2006-09-16
+// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression
+
+module dstress.compile.o.opCat_22_F;
+
+const char[] a = "";
+const char[] b = "cat";
+const char[] c = b ~ a;
+
+static assert(b == "cat");