[cfe-dev] __extension__ treatment
Douglas Gregor
dgregor at apple.com
Thu Oct 14 10:52:29 PDT 2010
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.
- Doug
More information about the cfe-dev
mailing list