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]

Re: c++/4181: mismatch in size of empty class


Synopsis: mismatch in size of empty class

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Aug 31 05:20:29 2001
State-Changed-Why:
    Not a bug.  Padding is required to maintain alignment.  GCC 3.0 optimizes empty base classes away entirely, so you'll see the size of the class is 4, not 8 or 5.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4181&database=gcc


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