Closed
Description
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 fromB
, the dynamic type of the expression*p
isD
. References are treated similarly.
Metadata
Metadata
Assignees
Labels
No labels