https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124651
Bug ID: 124651
Summary: ICE with -Winfinite-recursion
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: wingo at pobox dot com
Target Milestone: ---
Created attachment 64037
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64037&action=edit
gcc -c /tmp/test.c -Winfinite-recursion
Hello, I can get an ICE with the attached file. To reproduce:
```
gcc -c /tmp/test.c -Winfinite-recursion
gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
```
No ICE without -Winfinite-recursion.
This is a reduced part of a generated file. There is one big function,
func_473 at line 108196, 60k lines long. I have reduced it a bit already but
at this point if I remove random 10k spans from it, the bug goes away, so I am
not sure what's going on.