Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: speirofr at gmail dot com
Target Milestone: ---
The gcc 4.9.2 crashes when processing declarations such as: int (( ... (x) ...
)), with the number of parens > 400.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66903
--- Comment #1 from Salva Peiró ---
Created attachment 36001
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36001&action=edit
parens.i: Preprocesed sourced with gcc -v -save-temps
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66903
--- Comment #2 from Salva Peiró ---
$ gcc parens.c
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
$ gcc -v
Using built-in specs.
CO
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66903
--- Comment #4 from Salva Peiró ---
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 unlim