This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13614] zero size base class not zero size in complex inheritance
- From: "lawless at spamcop dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2004 00:30:11 -0000
- Subject: [Bug c++/13614] zero size base class not zero size in complex inheritance
- References: <20040108152112.13614.lawless@spamcop.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lawless at spamcop dot net 2004-01-09 00:30 -------
A closer reading of
"however, two subobjects that have the same class type and that belong to the
same most derived object must not be allocated at the same address (5.10)."
is in order. The B1 base class does NOT appear twice in the same "most derived
object". B1 a base to a *member* of D *once*, and B1 is a base to D *once*. B1
does not appear as a base to any class more than one time. G++ is wrong.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13614