https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70051
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- The bug here I believe is in how/where the C++ front end calls the sanitizer to detect the overflow. With PR69517 resolved by having the C++ front end throw an exception, this bug will become largely a non-issue (except with -fno-exceptions it will still need to be fixed), but PR68065 won't.