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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=119248
   Last reconfirmed|                            |2025-03-20
             Status|UNCONFIRMED                 |NEW
            Summary|Rejects valid               |Preprocessor tokens should
                   |                            |evaluate integer constants
                   |                            |as intmax_t

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's been valid since C++11:

[cpp.cond]
"For the purposes of this token conversion and evaluation all signed and
unsigned integer types act as if they have the same representation as,
respectively, intmax_t or uintmax_t"

Isn't this just the general case of Bug 119248?

Reply via email to