[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack

gcc at magfr dot user dot lysator dot liu dot se gcc-bugzilla@gcc.gnu.org
Thu Apr 6 12:08:00 GMT 2006



------- Comment #4 from gcc at magfr dot user dot lysator dot liu dot se  2006-04-06 12:08 -------
The standard says the limit have to be more than 17, the g++ default is 500 in
order, I assume, to be nice to users.

The reason I reported the bug was that the compiler terminated with an internal
error instead of a controlled error.


-- 


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



More information about the Gcc-bugs mailing list