Issue 1136: CHAR_MIN and CHAR_MAX do not have defined types

Authors: Jay Ghiron
Date: 2026-11-27
Submitted against: C23
Status: Open
Cross-references: 1133

If an object of type char can hold negative values, the value of CHAR_MIN shall be the same as that of SCHAR_MIN and the value of CHAR_MAX shall be the same as that of SCHAR_MAX. Otherwise, the value of CHAR_MIN shall be 0 and the value of CHAR_MAX shall be the same as that of UCHAR_MAX (see 6.2.5.).

(C23 5.3.5.3.2 "Characteristics of integer types <limits.h>" paragraph 4.)

This paragraph only defines the values of CHAR_MIN and CHAR_MAX, but it never defines their types. Before C23 their types were defined as the promoted type of char, I assume it was not the intent to remove the definition of their types.

Suggested correction

Modify C23 5.3.5.3.2 paragraph 4:

If an object of type char can hold negative values, the value and the type of CHAR_MIN shall be the same as that of SCHAR_MIN and the value and the type of CHAR_MAX shall be the same as that of SCHAR_MAX. Otherwise, the value of CHAR_MIN shall be 0 while the type of CHAR_MIN shall be the same as that of UCHAR_MAX, and the value and the type of CHAR_MAX shall be the same as that of UCHAR_MAX (see 6.2.5.).

Note: This suggested correction does not interfere with the changes suggested in issue 1133.