[Issue 9935] static if evaluation of template causes OOM/stack overflow.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 15 03:51:40 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9935
--- Comment #3 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-04-15 03:51:38 PDT ---
And here is the change that dustmite made to cause the bug.
---
diff -pur bug.reduced/typetuple.d bug.test/typetuple.d
--- bug.reduced/typetuple.d 2013-04-15 11:48:35.739230767 +0100
+++ bug.test/typetuple.d 2013-04-15 11:49:13.303231268 +0100
@@ -34,7 +34,7 @@ alias GenericReplace!(T, U, TList).resul
template GenericReplace(args...)
{
-alias args[0]from;
+alias args[]from;
alias args[1]to;
alias args[2 .. $] tuple;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list