When does invoking a member function on a null instance result in undefined behavior?
- by GMan
This question arose in the comments of a now-deleted answer to this other question. Our question was asked in the comments by STingRaySC as:
Where exactly do we invoke UB? Is it calling a member function through an invalid pointer? Or is it calling a member function that accesses member data through an invalid pointer?
With the answer deleted…