[cfe-dev] patch: boolean bitfield init

Daniel Dunbar daniel at zuster.org
Thu Jul 17 11:34:27 PDT 2008


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.



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