[cfe-dev] patch: boolean bitfield init

Eli Friedman eli.friedman at gmail.com
Thu Jul 17 18:28:51 PDT 2008


On Thu, Jul 17, 2008 at 6:24 PM, Daniel Dunbar <daniel at zuster.org> wrote:
> For C++ g++ appears to treat it as padding as
> you describe.

Which version are you using?  And how does it deal with the following code?
struct {bool  x : 9;} x = {255}; int c() {return x.x==1;}

-Eli



More information about the cfe-dev mailing list