[Bug sanitizer/124005] -fsanitize=undefined has different behavior depending on the optimization flags
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 07:31:30 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124005
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
But this is not the result of sanitizing but is -Wformat-truncation diagnostic
which of course depends on the IL which _is_ influenced by sanitizing.
I think you misread the documentation. Runtime sanitizer diagnostics are
not supposed to be affected by optimization level.
More information about the Gcc-bugs
mailing list