https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106099
--- Comment #11 from Zdenek Sojka <zsojka at seznam dot cz> --- And with another degenerate flags on the testcase above: # x86_64-pc-linux-gnu-gcc -O -fno-tree-forwprop -fno-tree-dominator-opts -fharden-conditional-branches -funreachable-traps -fno-tree-ccp --param=max-loop-header-insns=0 --param=scev-max-expr-size=0 testcase.c during GIMPLE pass: optimized testcase.c: In function 'foo': testcase.c:2:1: internal compiler error: in execute_todo, at passes.cc:2140 2 | foo (void) | ^~~ 0x75d426 execute_todo /repo/gcc-trunk/gcc/passes.cc:2140 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.