[Bug middle-end/99370] calling a virtual function in insufficient space silently folded to __builtin_unreachable

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 3 19:29:46 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99370

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is since this transformation is done during optimization, it could
be done on a path that is not executed at all.  This is why
-fsanitize=undefined/-fsanitize=unreachable should be used if you want to
detect it at runtime.


More information about the Gcc-bugs mailing list