https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69230
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
My bad. I confused the decimal 3 for a binary 111. Gcc does warn both ways
when the controlling expression is (i & 7) so the problem is the other way
around. Thanks for the correction. I suppose this really is invalid since the
GCC manual notes the -O1 caveat for a similar case, and glibc should either not
be built with -Wmaybe-uninitialized and -O1 or it should add a default case to
the switch.