https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101576
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The sanitizer implies -fno-delete-null-pointer-exceptions (e.g. so that the non-NULL runtime checks aren't optimized away), and the lack of that warning is a direct consequence of that. Don't rely on warnings when sanitizing, the instrumentation changes the IL too much.