changeset 1362:4a49d5a2169a

[Issue 1002] debug statement crashes at compile-time function execution Hasan Aljudy <hasan.aljudy@gmail.com> 2007-02-23 http://d.puremagic.com/issues/show_bug.cgi?id=1002
author thomask
date Mon, 26 Feb 2007 11:28:43 +0000
parents 2346dc04e49f
children f900501c0e18
files reporter.txt run/d/debug_14_A.d
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/reporter.txt	Mon Feb 26 11:28:15 2007 +0000
+++ b/reporter.txt	Mon Feb 26 11:28:43 2007 +0000
@@ -66,6 +66,7 @@
 Garett Bass		<garettbass@studiotekne.com>
 Geoff Hickey
 Georg Ramme		<georg.ramme@gmail.com>
+Hasan Aljudy		<hasan.aljudy@gmail.com>
 Hauke Duden		<H.NS.Duden@gmx.net>
 Hiroshi Sakurai
 icee			<iceelyne@gmail.com>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/d/debug_14_A.d	Mon Feb 26 11:28:43 2007 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Hasan Aljudy <hasan.aljudy@gmail.com>
+// @date@	2007-02-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1002
+// @desc@	[Issue 1002] debug statement crashes at compile-time function execution
+
+module dstress.run.d.debug_14_A;
+
+dchar[] testd( dchar[] input ){
+	debug int x = 10;
+	return "my";
+}
+
+int main(){
+	static x = testd("hello");
+	if("my" != x){
+		assert(0);
+	}
+	return 0;
+}