[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:49:22 GMT 2025


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

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Krzysztof Pecka from comment #13)
> Can you give me the command that prints you this? I am not getting anything,
> after adding `-fsanitize=undefined -fsanitize=address`


This was at runtime. rather than compile time. That is `-fsanitize=undefined
-fsanitize=address` detects the issue at runtime.


More information about the Gcc-bugs mailing list