[Bug c++/51488] ICE on infinite template recursion

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 7 17:59:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51488

--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #2)
> Manuel, looks like these 3 testcases are instances of the very same issue:
> our template instantiation depth control mechanism doesn't handle this case.
> I'm attaching below a piece of a stack trace, to show you the infinite
> recursion.
> 
> I seem to remember you did work in this area: any tips to handle this case
> too?

Sorry, no idea. Have you tried using a very small -ftemplate-depth? It crashes
because out of memory or something else?


More information about the Gcc-bugs mailing list