changeset 1359:70cf89908f9d

[Issue 992] CTFE Failure with static if Russ Lewis <webmaster@villagersonline.com> 2007-02-21 http://d.puremagic.com/issues/show_bug.cgi?id=992
author thomask
date Mon, 26 Feb 2007 11:27:37 +0000
parents 4d5d9a6439e2
children 5cd796ed85c3
files compile/a/assert_20_A.d compile/a/assert_20_B.d reporter.txt run/s/static_if_08_A.d run/s/static_if_08_B.d
diffstat 5 files changed, 73 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/a/assert_20_A.d	Mon Feb 26 11:27:37 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-02-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=992
+// @desc@	[Issue 992] CTFE Failure with static if
+
+module dstress.compile.a.assert_20_A;
+
+bool isWhitespace() {
+	return true;
+}
+
+static assert(isWhitespace());
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/a/assert_20_B.d	Mon Feb 26 11:27:37 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-02-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=992
+// @desc@	[Issue 992] CTFE Failure with static if
+
+module dstress.compile.a.assert_20_B;
+
+bool isWhitespace(char c) {
+	return true;
+}
+
+static assert(isWhitespace(' '));
--- a/reporter.txt	Mon Feb 26 11:27:07 2007 +0000
+++ b/reporter.txt	Mon Feb 26 11:27:37 2007 +0000
@@ -126,7 +126,7 @@
 Roberto Mariottini
 Roel Mathys		<roel.mathys@yucom.be>, <roel.mathys@gmail.com>
 Rueschi			<rueschi@giquadrat.de>
-Russ Lewis		<spamhole-2001-07-16@deming-os.org>
+Russ Lewis		<spamhole-2001-07-16@deming-os.org>, <webmaster@villagersonline.com>
 Russell Wilkins		<Russell.Wilkins@grovestarsoftware.com>, <rwilkins@grovestarsoftware.com>
 Sam McCall		<tunah@tunah.net>
 Samuel Martin Valentin	<samuel@jxdesigner.com>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_if_08_A.d	Mon Feb 26 11:27:37 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-02-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=992
+// @desc@	[Issue 992] CTFE Failure with static if
+
+module dstress.run.s.static_if_08_A;
+
+bool isWhitespace(char c) {
+	return true;
+}
+
+static if(isWhitespace('c')){
+	int main(){
+		return 0;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_if_08_B.d	Mon Feb 26 11:27:37 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-02-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=992
+// @desc@	[Issue 992] CTFE Failure with static if
+
+module dstress.run.s.static_if_08_B;
+
+bool isWhitespace() {
+	return true;
+}
+
+static if(isWhitespace()){
+	int main(){
+		return 0;
+	}
+}