You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full name of submitter (unless configured in github; will be published with the issue): Jim X
If a pointer p whose static type is “pointer to class B” is pointing to an object of class D, derived from B, the dynamic type of the expression *p is “D”. References are treated similarly.
Since the pointer p already points to the subobject B, how does it simultaneously point to the containing object? The intent should be:
If a pointer p whose static type is “pointer to class B” points to an object that is a base class subobject of an object of class D derived from B, the dynamic type of the expression *p is D. References are treated similarly.