This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/17173] layout of bitfields with larger-than-int base type


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]