https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122824
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-11-24
Ever confirmed|0 |1
Keywords| |false-positive
Status|UNCONFIRMED |NEW
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Let me try to reduce the testcase further.
But confirmed.
Note the warning is definitely bogus because it is optimized away afterwards.