https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111056
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alex Henrie from comment #3) > I imagine that it would be difficult to change GCC's behavior to match > Clang's in this case. Except GCC does not warn at -O1 and above (there are a few other bug reports about the difference at -O0 and -O1 already, e.g. PR 92507)