# HG changeset patch # User thomask # Date 1175769092 0 # Node ID 92ed738d5fadbdf436fcd80579e01e05508fc1dc # Parent a88dcaf5c0d01fdd9b73f353e6af082c683e3682 [Issue 884] Segfault in recursive template Frits van Bommel 2007-01-24 http://d.puremagic.com/issues/show_bug.cgi?id=884 diff -r a88dcaf5c0d0 -r 92ed738d5fad nocompile/t/templatde_58_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/templatde_58_A.d Thu Apr 05 10:31:32 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Frits van Bommel +// @date@ 2007-01-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=884 +// @desc@ [Issue 884] Segfault in recursive template + +module dstress.nocompile.t.template_58_A; + +template Inner(Ts...) { + const Inner = .Inner!((Ts)); +} + +auto x = Inner!(); diff -r a88dcaf5c0d0 -r 92ed738d5fad nocompile/t/templatde_58_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/templatde_58_B.d Thu Apr 05 10:31:32 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Frits van Bommel +// @date@ 2007-01-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=884 +// @desc@ [Issue 884] Segfault in recursive template + +module dstress.nocompile.t.template_58_B; + +template Inner(Ts...) { + const Inner = .Inner!(Ts); +} + +auto x = Inner!(); diff -r a88dcaf5c0d0 -r 92ed738d5fad nocompile/t/templatde_58_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/templatde_58_C.d Thu Apr 05 10:31:32 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Frits van Bommel +// @date@ 2007-01-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=884 +// @desc@ [Issue 884] Segfault in recursive template + +module dstress.nocompile.t.template_58_C; + +template Inner(Ts...) { + const Inner = Inner!((Ts)); +} + +auto x = Inner!(); diff -r a88dcaf5c0d0 -r 92ed738d5fad nocompile/t/templatde_58_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/templatde_58_D.d Thu Apr 05 10:31:32 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Frits van Bommel +// @date@ 2007-01-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=884 +// @desc@ [Issue 884] Segfault in recursive template + +module dstress.nocompile.t.template_58_D; + +template Inner(Ts...) { + const Inner = Inner!(Ts); +} + +auto x = Inner!();