https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98414
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, that is a fix for the bootstrap-ubsan issues, but not the above small testcase showing the problems for users. But sure, as this is a problem that exists many years and nobody reported it before, it is enough to fix just the bootstrap-ubsan stuff for GCC 11.