https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try using -fno-delete-null-pointer-checks, a lot of C++ code violates the rule about calling a class method with a null pointer.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try using -fno-delete-null-pointer-checks, a lot of C++ code violates the rule about calling a class method with a null pointer.