https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117482
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |11.4.0
Known to fail| |12.1.0
Status|UNCONFIRMED |NEW
Target Milestone|--- |12.5
Last reconfirmed| |2024-11-07
Summary|Bogus -Wstringop-overflow |[12/13/14/15 Regression]
|warning in intrusive list |Bogus -Wstringop-overflow
|implementation |warning in intrusive list
| |implementation
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I was thinking there was a missed optimization due to an character type but int
gives the same IR too.
Anyways confirmed.
Note another workaround is to add:
if (!entry) __builtin_unreachable();
After the pop. To say the pop will always work.