https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118204
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- Note that for https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fsanitize-trap, we already document the incompatibility with vptr: > Currently this feature works with -fsanitize=undefined (and its suboptions > except for -fsanitize=vptr), [...] > If -fsanitize-trap=undefined or -fsanitize-trap=all is used and > -fsanitize=vptr is enabled on the command line, the instrumentation is > silently ignored as the instrumentation always needs libubsan support, > -fsanitize-trap=vptr is not allowed.