This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17173] layout of bitfields with larger-than-int base type
- From: "terra at gnome dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2004 20:14:22 -0000
- Subject: [Bug c/17173] layout of bitfields with larger-than-int base type
- References: <20040824200144.17173.terra@gnome.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From terra at gnome dot org 2004-08-24 20:14 -------
With this...
struct Foo3 {
int : 1;
int : 0;
unsigned long long int : 0;
int z;
};
...things get clearer: the second :0 field should do nothing as the previous
unit has already been closed off. It should therefore print 4 (as Foo2), but
it prints 8 for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17173