https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77951
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is not a bug and the documentation in this extension already says this is undefined. Since you don't do any computed gotos gcc can change the location of the labels without any care. Note there are many duplicate bug reports of reporting this exact behavior.