HP's object layout, clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HP's object layout, clarification
- To: cxx-abi@xxxxxxxxxxxx
- Subject: HP's object layout, clarification
- From: thomson@xxxxxxxxxx
- Date: Fri, 11 Jun 1999 14:22:43 -0400
Cary, your object layout description makes this statement:
The C++ language allows an empty base-class to share
its location with its descendents ...
... but also imposes the following INequalities:
(void*)&empty != (void*)&also_empty
(void*)&(Empty2&)bug != (void*)&(AlsoEmpty&)bug
I.e., for two subobjects to have the same address,
one must be derived from the other
I see this asserted in section 10.0 of the spec for subobjects
"that have the same class type", but not for subobjects in general.
Do you have a supporting citation?
Brian Thomson
VisualAge C/C++ Chief Architect