[Bug c++/105524] -Wmaybe-uninitialized false-positive with switch of enum with more than 2 elements

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun May 8 19:17:45 GMT 2022


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

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> ---
You misunderstand the semantics of strict enum.

That is here a value of 3 is still valid under strict enum and all.


More information about the Gcc-bugs mailing list