# HG changeset patch # User thomask # Date 1118470712 0 # Node ID 54995adcf26f36007f5602c1ca4551857a67aea6 # Parent 893c2d75daf46996efdc97ab213243c0f4bfc7b5 compiler hangs on recursive template Nick 2005-06-10 news:d8btjq$11c7$1@digitaldaemon.com compiler hangs on recursive template diff -r 893c2d75daf4 -r 54995adcf26f nocompile/t/template_16.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_16.d Sat Jun 11 06:18:32 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick +// @date@ 2005-06-10 +// @uri@ news:d8btjq$11c7$1@digitaldaemon.com +// @desc@ compiler hangs on recursive template + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.t.template_16; + +template Template(int i) { + mixin Template!(i+1); +} + +mixin Template!(0); + diff -r 893c2d75daf4 -r 54995adcf26f nocompile/t/template_class_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_class_09.d Sat Jun 11 06:18:32 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick +// @date@ 2005-06-10 +// @uri@ news:d8btjq$11c7$1@digitaldaemon.com +// @desc@ compiler hangs on recursive template + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.t.template_class_09; + +template Template(int i) { + class Class : Template!(i+1).Class{ + } +} + +alias Template!(0).Class Class0; +