https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64922
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #6) > Created attachment 34666 [details] > Patch I am testing. > > The following patch fixes the parameters, but I do not get any > ubsan_unreachable calls. Jakub, can you take a look, please? Have you compiled the testcase with -fsanitize=alignment,bool,enum -O2 -D_GLIBCXX_USE_CXX11_ABI=0 , against recentish libstdc++ headers?