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.

--- 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.

        Jakub

Reply via email to