This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13614] zero size base class not zero size in complex inheritance


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]