https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Calling a NULL object is undefined. Address address() { return reinterpret_cast<Address>(this); } bool is_valid() { return address() != # 475 "../../v8/src/heap/spaces.h" 3 4 __null # 475 "../../v8/src/heap/spaces.h" ; } That will always be true. That is this can never be NULL.