Hi Jakub, Joseph,

On Tue, May 27, 2025 at 10:28:23PM +0200, Jakub Jelinek wrote:
> On Tue, May 27, 2025 at 08:22:28PM +0000, Joseph Myers wrote:
> > Thanks, I've committed these patches, with additional commit message 
> > changes to reference PR117025 in the standard way for GCC so that Bugzilla 
> > picks up the commits automatically.

Thanks a lot!!!  :-)

> --- a/gcc/c/c-parser.cc                                                       
>                                                                               
>                           
> +++ b/gcc/c/c-parser.cc                                                       
>                                                                               
>                           
> @@ -10649,6 +10649,10 @@ c_parser_sizeof_or_countof_expression (c_parser 
> *parser, enum rid rid)                                                        
>                                
>                                                                               
>                                                                               
>                           
>    start = c_parser_peek_token (parser)->location;                            
>                                                                               
>                           
>                                                                               
>                                                                               
>                           
> +  if (rid == RID_COUNTOF)                                                    
>                                                                               
>                           
> +    pedwarn_c23 (start, OPT_Wpedantic,                                       
>                                                                               
>                           
> +                "ISO C does not support %qs before C23", op_name);           
>                                                                               
>                           
> +                                                                             
>                                                                               
>                           
>    c_parser_consume_token (parser);                                           
>                                                                               
>                           
>    c_inhibit_evaluation_warnings++;                                           
>                                                                               
>                           
>    if (rid == RID_COUNTOF)                                                    
>                                                                               
>                           
> 
> The C23 in there looks like pasto, should be C2Y.

Oopsy!  Sorry!  Please fix, yep, it's a pasto.  :)


Have a lovely night!
Alex

> 
>       Jakub
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature

Reply via email to