https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111689
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Because this is exactly what the C standard says it should be. See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf 6.4.4.1/5 . For hex (and Octal) constants, if the value is not representable in `signed long long` (which it is not as it is too big) but representable as `unsigned long long` then unsigned long long is chosen for LL. For Decimals, it is just signed.