https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #10 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Giuseppe D'Angelo from comment #9)
> > For comparison, Clang doesn't warn.
>
> ... doesn't warn on (2) and (3), that is. (Those are the cases for which I
> think GCC is wrong at emitting the warning.)
Sounds right. Maybe create a new bug report that we can track as a regression?