https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122591

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-11-07
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |rejects-valid

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

c_sizeof_or_alignof_type has this towards the end:
  /* VALUE will have the middle-end integer type sizetype.
     However, we should really return a value of type `size_t',
     which is just a typedef for an ordinary integer type.  */
  value = fold_convert_loc (loc, size_type_node, value);

Which c_countof_type should be added there too.

Reply via email to