4 ms·
Just to cite what the others have told you: https://godbolt.org/z/bWfaYrqoY https://godbolt.org/z/bWfaYrqoY /app/example.cpp:10:6: runtime error: member ca
by steveklabnik 1y ago
Just to cite what the others have told you: https://godbolt.org/z/bWfaYrqoY https://godbolt.org/z/bWfaYrqoY
/app/example.cpp:10:6: runtime error: member call on null pointer of type 'Foo'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.cpp:10:6
/app/example.cpp:3:8: runtime error: member call on null pointer of type 'Foo *'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.cpp:3:8