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

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Fri Aug 31 05:20:00 GMT 2001


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



More information about the Gcc-bugs mailing list