This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine
- From: "bliss1940-bbs at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2007 22:48:20 -0000
- Subject: [Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine
- References: <bug-32016-9370@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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