Mercurial > projects > dstress
changeset 1283:91479703e22e
[Issue 710] New: compiler assertion failure w/ templates
Dan <ddaglas@gmail.com>
2006-12-22
http://d.puremagic.com/issues/show_bug.cgi?id=710
author | thomask |
---|---|
date | Tue, 26 Dec 2006 14:21:23 +0000 |
parents | 75288b41b6c7 |
children | 96e7be832c35 |
files | nocompile/t/template_52_A.d nocompile/t/template_52_B.d nocompile/t/template_52_C.d reporter.txt |
diffstat | 4 files changed, 61 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_52_A.d Tue Dec 26 14:21:23 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-22 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=710 +// @desc@ [Issue 710] New: compiler assertion failure w/ templates + +// __DSTRESS_ELINE__ 20 + +module dstress.nocompile.t.template_52_A; + +static int i=0; + +template NEXT(int idx){ + const NEXT = idx; +} + +ubyte HELO = NEXT!(i++);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_52_B.d Tue Dec 26 14:21:23 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-22 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=710 +// @desc@ [Issue 710] New: compiler assertion failure w/ templates + +// __DSTRESS_ELINE__ 20 + +module dstress.nocompile.t.template_52_B; + +const int i=0; + +template NEXT(int idx){ + const NEXT = idx; +} + +ubyte HELO = NEXT!(i++);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_52_C.d Tue Dec 26 14:21:23 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-22 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=710 +// @desc@ [Issue 710] New: compiler assertion failure w/ templates + +// __DSTRESS_ELINE__ 20 + +module dstress.nocompile.t.template_52_C; + +int i = 0; + +template NEXT(int idx){ + auto NEXT = idx; +} + +ubyte HELO = NEXT!(i++);
--- a/reporter.txt Tue Dec 26 14:21:14 2006 +0000 +++ b/reporter.txt Tue Dec 26 14:21:23 2006 +0000 @@ -38,6 +38,7 @@ Christopher Lane Hinson <lane@downstairspeople.org> clayasaurus <clayasaurus@gmail.com> D Trebbien +Dan <ddaglas@gmail.com> Daniel Horn <hellcatv@hotmail.com> Dave <godaves@yahoo.com> david <davidl@126.com>