[Bug c/17173] layout of bitfields with larger-than-int base type
terra at gnome dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 24 20:14:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list