# HG changeset patch # User thomask # Date 1160665264 0 # Node ID 04624d579af6e33dbeedec1c5f8ac775e7871f6d # Parent 95444069a9c302acae5fc2983bc6ee46a72118fe [Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault Thomas Kuehne 2006-10-06 news:bug-405-3@http.d.puremagic.com/issues/ diff -r 95444069a9c3 -r 04624d579af6 nocompile/t/typeof_14_A.d --- /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 +// @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); diff -r 95444069a9c3 -r 04624d579af6 nocompile/t/typeof_14_B.d --- /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 +// @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; +}