Defect Report #068

Submission Date: 03 Dec 93
Submittor: WG14
Source: Clive Feather
Question
Item 5 - handling of char values
Values of the type char must be treated as either ``signed'' or ``nonnegative'' integers (subclause 6.1.2.5).
  1. Is the treatment determined strictly by the value of the expression CHAR_MAX == SCHAR_MAX?
  2. If the treatment is as ``signed'' integers, does the type char behave in every instance as the type signed char (though of course being a different type)? If not, what are the differences?
  3. If the treatment is as ``nonnegative'' integers, does the type char behave in every instance as the type unsigned char (though of course being a different type)? If not, what are the differences? In particular, do the "no overflow, reduce modulo" semantics apply?
Response
a) Yes.
b) and c) Yes. Subclause 6.2.1.1, ``As discussed earlier, ...'' indicates that this is the intent.
Previous Defect Report < - > Next Defect Report