Mercurial > projects > dstress
changeset 576:54995adcf26f
compiler hangs on recursive template
Nick <Nick_member@pathlink.com>
2005-06-10
news:d8btjq$11c7$1@digitaldaemon.com
compiler hangs on recursive template
author | thomask |
---|---|
date | Sat, 11 Jun 2005 06:18:32 +0000 |
parents | 893c2d75daf4 |
children | 74350025e311 |
files | nocompile/t/template_16.d nocompile/t/template_class_09.d |
diffstat | 2 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 <Nick_member@pathlink.com> +// @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); +
--- /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 <Nick_member@pathlink.com> +// @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; +