https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> --- enum E { F } a, b; char c; bool d; int e; int (*f) (int, int); int foo (int, int); void bar (void) { if (d) for (e = 0; c; e++ && a) switch (b) case F: f = foo; } ./xgcc -B ./ -fcompare-debug -O2 -march=skylake-avx512 -S pr112374.C xgcc: error: pr112374.C: ‘-fcompare-debug’ failure Though, that is because of different discriminators, so feels to be https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603673.html related. Guess I'll start another reduction with additional -gno-statement-frontiers.