On Wed, 21 May 2025, Alejandro Colomar wrote:

> Makes sense.  I'm unsure where exactly I should put it.  Is this okay?
> 
>       diff --git i/gcc/c/c-parser.cc w/gcc/c/c-parser.cc
>       index 87700339394b..08350a216dd8 100644
>       --- i/gcc/c/c-parser.cc
>       +++ w/gcc/c/c-parser.cc
>       @@ -10456,20 +10456,22 @@ c_parser_cast_expression (c_parser *parser, 
> struct c_expr *after)
>            return c_parser_unary_expression (parser);
>        }
>        
>        /* Parse an unary expression (C90 6.3.3, C99 6.5.3, C11 6.5.3).
>        
>           unary-expression:
>             postfix-expression
>             ++ unary-expression
>             -- unary-expression
>             unary-operator cast-expression
>       +     _Countof unary-expression
>       +     _Countof ( type-name )

With some kind of remark to indicate it's new in C2Y, yes.  E.g. 
c_parser_generic_selection's comment says "(The use of a type-name is new 
in C2Y.)".

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to