[Bug middle-end/122035] Wrong behavior under -O2 and -O3 optimization

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 23 19:58:14 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122035

--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
As I mentioned at -O2, the undefined behavior is removed as we can figure out
strlen(&a) is always 0.


More information about the Gcc-bugs mailing list