https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118469
Bug ID: 118469
Summary: ICE in lexical parser if too many open parentheses
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fchelnokov at gmail dot com
Target Milestone: ---
Compilation of this program
```
#define B (((((((((( //10
#define C B B B B B //50
#define D C C C C C //250
#define E D D D D D //1250
int main() {
E E E E E //6250
}
```
results in
> g++: internal compiler error: Segmentation fault signal terminated program
> cc1plus
> Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> See <https://gcc.gnu.org/bugs/> for instructions.
> Compiler returned: 4
Online demo: https://godbolt.org/z/va73zYfbn
Originally found in https://www.youtube.com/watch?v=U_XeifgJBOs&t=290s