This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16786] alignment incorrect on a structure field, on win32
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 21:07:14 -0000
- Subject: [Bug c/16786] alignment incorrect on a structure field, on win32
- References: <20040727184525.16786.antoine_labour@playstation.sony.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dannysmith at users dot sourceforge dot net 2004-07-27 21:07 -------
The testcase also fails on gcc-3.3.3 on mingw.
It gives correct results on 3.4.1 and trunk (20040726) on mingw
offsetof(B,a)=0x10
sizeof(A)=0x10
sizeof(B)=0x20
alignof(A)=10
alignof(B)=10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16786