[Bug c/66903] The gcc 4.9.2 crashes when processing declarations such as: int (( ... (x) ... ))

speirofr at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 19 09:16:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66903

--- Comment #4 from Salva Peiró <speirofr at gmail dot com> ---
Confirmed, the cause of the crash is the parser 
_cpp_lex_direct() consuming the default 8 MB Linux stack.

Indeed, ulimit -s shows the stack size limit is set to 8192 KB,
After recompiling with ulimit -s unlimited, the gcc compilation 
succeeds without crashes.

Thanks for the explanation & the time to look at this,
PS: I raised the issue mainly because I was unsure of causes that lead to the
crash.


More information about the Gcc-bugs mailing list