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++/51096] No EBCO if a member of the base class type is defined


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51096

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-11 14:11:53 UTC ---
The standard says the empty base and Derived::a must have distinct addresses:

"Two objects that are not bit-fields may have the same address if one is a
subobject of the other, or if at least one is a base class subobject of zero
size and they are of different types; otherwise, they shall have distinct
addresses."


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