[cfe-dev] Clang miscompiles casted bitfields expression

Douglas Gregor dgregor at apple.com
Mon Jul 6 08:40:11 PDT 2009


On Jul 6, 2009, at 5:08 AM, Abramo Bagnara wrote:

> Abramo Bagnara ha scritto:
>> Douglas Gregor ha scritto:
>>>
>>> Oh, that's not good. We should skip ParenExprs, only.
>>>
>>>> The fix should be trivial (and the problem is currently rather  
>>>> severe),
>>>> but I want to be sure to not misunderstand something.
>>>
>>> Want to submit the patch to fix this? (If not, please file a bug  
>>> report
>>> so it doesn't get lost)
>>
>> I've attached the trivial patch.
>>
>
> There are some problems with this one-line patch?

No, you just happened to have the misfortune of sending your patch at  
the beginning of a long holiday weekend here in the U.S.
I've committed the patch (with test case) here:

    http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090706/018766.html

	- Doug



More information about the cfe-dev mailing list