https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83230
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This just looks like invalid testcase. If you build with -fsanitize=unreachable, it will die on: WOStdHepRdr.cpp:58:7: runtime error: execution reached the end of a value-returning function without returning a value which is something the compiler even warns about: WOStdHepRdr.cpp:242:3: warning: control reaches end of non-void function [-Wreturn-type] At that point, anything can happen, including fallthrough into another function etc. Fixing that it passes.