This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 113d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-03-20


1277. Lax definition of intmax_t and uintmax_t

Section: 17.4.1  [cstdint.syn]     Status: NAD     Submitter: Daniel Krügler     Date: 2011-03-26

The definition of intmax_t and uintmax_t, inherited from C99, leaves open the possibility that the underlying types might not be the ones with the highest integer conversion rank. The requirements for these types deal only with the representation, not the conversion rank, and it is possible for, e.g., long and long long to have the same representation, although they have different conversion ranks. On such an architecture, chosing long instead of long long for intmax_t would be conforming.

Rationale (August, 2011):

This is a C compatibility issue and has ABI implications; there was no consensus to pursue a change.