I don't understand how this is a bug. Calling a member function on a null pointer is clearly UB.
There is already a flag to support non-standard programs like this (-fno-delete-null-pointer-checks), but it's not enabled by default, of course.
I don't understand how this is a bug. Calling a member function on a null pointer is clearly UB.
There is already a flag to support non-standard programs like this (-fno-delete-null-pointer-checks), but it's not enabled by default, of course.