https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
--- Comment #7 from Andrew Pinski ---
Again this is just a limitation in the stack size.
Try doing:
ulimit -s unlimited
and you will most likely see they both work.
We could change the parser not to be as recusive function calls here but this
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
--- Comment #6 from Ruslan Mkoyan ---
By the way, there is one more file (attached 0.cpp.gz).
gcc-9 0.cpp is processed but gcc-12 0.cpp - segfault. With extension .c its ok
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
--- Comment #5 from Ruslan Mkoyan ---
Created attachment 53018
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53018&action=edit
0.cpp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
--- Comment #4 from Ruslan Mkoyan ---
(In reply to Andrew Pinski from comment #3)
> This is a won't fix stitutation.
>
> You have & on a type repeated 237,679 times.
>
> With a recusive decent compiler, you run out of stack space with that m
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
Andrew Pinski changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
--- Comment #2 from Ruslan Mkoyan ---
Created attachment 53009
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53009&action=edit
Input file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Ever confirmed|0