[Bug c++/13614] zero size base class not zero size in complex inheritance
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 9 11:45:00 GMT 2004
------- Additional Comments From nathan at gcc dot gnu dot org 2004-01-09 11:45 -------
The part of the std you quote says 'sub objects' not 'base sub objects' do not
reside at the same address. The member of B3 is a sub obect of D. See the
definition of sub obect in [1.8]/2 which explicitly says a sub object
can be a member or a base. It also gives the algorithm for determining the
most derived object of any particular sub object. In this case,
the direct base B1 of D and the B1 base in the B3::v[0] member have the same
most derived object. Therefore they cannot be allocated at the same address.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13614
More information about the Gcc-bugs
mailing list