https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98609
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The sanitizers generally diagnose what the C or C++ language spec say, not what the various extensions allow, it is the same also for shifts etc. So I think it is correct that this is diagnosed by default.