changeset 1184:04624d579af6

[Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault Thomas Kuehne <thomas-dloop@kuehne.cn> 2006-10-06 news:bug-405-3@http.d.puremagic.com/issues/
author thomask
date Thu, 12 Oct 2006 15:01:04 +0000
parents 95444069a9c3
children feabea588720
files nocompile/t/typeof_14_A.d nocompile/t/typeof_14_B.d
diffstat 2 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/t/typeof_14_A.d	Thu Oct 12 15:01:04 2006 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-10-06
+// @uri@	news:bug-405-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault
+
+// __DSTRESS_ELINE__ 13
+
+module dstress.nocompile.t.typeof_14_A;
+
+template square(typeof(x) x){
+	const square = x * x;
+}
+
+const b = square!(2);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/t/typeof_14_B.d	Thu Oct 12 15:01:04 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-10-06
+// @uri@	news:bug-405-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault
+
+// __DSTRESS_ELINE__ 13
+
+module dstress.nocompile.t.typeof_14_B;
+
+template square(typeof(x) x){
+	const square = x * x;
+}