This is the mail archive of the gcc@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] |
On Thu, Aug 29, 2002 at 03:10:15PM -0700, Richard Henderson wrote:Perhaps you could elaborate further on the distinction here?I just thought of one other thing. Please tell me what is supposed to happen with struct A { virtual void foo(); int x : 31; }; struct B : public A { unsigned int x : 1; }; If sizeof(B) == 8
It should be 12. This is one of the bugs I recently discovered in G++'s ABI implementation; it does in fact make sizeof(B) == 8, even though it shouldn't. -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |