[cfe-dev] patch: boolean bitfield init

Chris Lattner clattner at apple.com
Thu Jul 17 12:43:47 PDT 2008


On Jul 17, 2008, at 11:34 AM, Daniel Dunbar wrote:

> Definitely, but until that gets fixed in the front-end I'd rather
> have codegen not crash. I believe various parts of the bit-field
> handling need to be reworked but it is easier for me to evaluate
> when I can look at what works and what doesn't.

Ok.  If your patch does the right thing (produces the right code)  
please commit it.  Thanks Daniel!

-Chris

>
>
>
>
> ----- Original Message ----
> From: Devang Patel <dpatel at apple.com>
> To: Daniel Dunbar <daniel at zuster.org>
> Cc: Chris Lattner <clattner at apple.com>; cfe-dev at cs.uiuc.edu
> Sent: Thursday, July 17, 2008 11:26:42 AM
> Subject: Re: [cfe-dev] patch: boolean bitfield init
>
>
> On Jul 17, 2008, at 11:14 AM, Daniel Dunbar wrote:
>
>> The immediate problem is that the constant being used to initialize
>> the bit-field is of type bool (this is a separate bug) even though
>> the bit-
>> field has width > 1.
>
> But the size of type bool should be 8 bits, otherwise the test case is
> invalid.
> For example,
>    struct { int a:199; } b;
>
> -
> Devang
>




More information about the cfe-dev mailing list