[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:40:14 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106929

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
For C17 (and previous standards), if you use -pedantic you'll get a warning,
and -pedantic-errors will make it an error.


More information about the Gcc-bugs mailing list