[Bug c/106929] declaration in switch-case doesn't fail since GCC 11

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 14:42:16 GMT 2022


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.


More information about the Gcc-bugs mailing list