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.