[cfe-dev] __extension__ treatment
Abramo Bagnara
abramo.bagnara at gmail.com
Fri Oct 15 00:53:09 PDT 2010
Il 14/10/2010 19:52, Douglas Gregor ha scritto:
>
> On Oct 14, 2010, at 12:23 AM, Abramo Bagnara wrote:
>
>>
>> Currently
>>
>> Expr::IgnoreParens();
>> Expr::IgnoreParenCasts();
>> Expr::IgnoreParenImpCasts();
>>
>> does not take in proper account __extension__ unary operator.
>>
>> This means that everywhere this methods are called the behaviour would
>> change if an __extension__ keyword was present.
>>
>> I think this is a mistake: __extension__ is no different from parens.
>>
>> What do you think about?
>
> Sounds like a bug! __extension__ should be no different from parentheses, and should have no effect on the semantics of the program except to silence diagnostics.
Fixed in r116569.
More information about the cfe-dev
mailing list