[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine
bliss1940-bbs at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Mon May 21 22:48:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list