The FP happens when a casting nullptr expression is used within a NULL-default-arguemnt cxx constructor.
Before the fix, the check will give a warning on nullptr when running
with the test case, which should not happen:
G(g(static_cast<char*>(nullptr))); ^~~~~~~~~~~ nullptr