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++/32016] sizeof(class) always a multiple of 4 on 32 bit machine



------- Comment #5 from bliss1940-bbs at yahoo dot com  2007-05-21 23:48 -------
(In reply to comment #3)

> Try:
> struct a33
> {
>   struct Char1 a1;
>   struct Char1 a2;
> };
> And see what size/offset the structs are at.  Again this is an ABI issue

Simply saying it's an ABI issue doesn't make it so.  Please explain.

              Microsoft        GNU
sizeof(a33)        2            8
offsetof(a1)       0            0
offsetof(a2)       1            4

So what's the point?  What would you expect?


-- 


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


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