https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107766
--- Comment #3 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- Posting example from PR107789 here in unlikely case it's a slightly different problem: $ cat a.c.c long ga, gb, gc, gd; unsigned long ge, gf; int gh; int bug(void) { gf = gb ? ga : 0; gf -= gh * ge; gc += gd * ge; if (gf) gc += gf; return 0; } Crashes as: $ gcc -std=c99 -O2 -c a.c.c -o a.o -O2 during GIMPLE pass: slp a.c.c: In function 'bug': a.c.c:4:5: internal compiler error: Segmentation fault 4 | int bug(void) { | ^~~ 0x1ae8c54 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x1ae98a6 internal_error(char const*, ...) ???:0 0xcb2b3f crash_signal(int) ???:0 0xf194b7 complex_mul_pattern::matches(...