https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106929
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- It's also the documented behaviour: https://gcc.gnu.org/onlinedocs/gcc-11.3.0/gcc/Mixed-Labels-and-Declarations.html and in the release notes: https://gcc.gnu.org/gcc-11/changes.html#c So not a bug.