Created on 2022-02-25.00:00:00 last changed 27 months ago
Proposed resolution (approved by CWG 2022-03-11):
- A character-literal with a c-char-sequence consisting of a single numeric-escape-sequence
that specifies an integer value vhas a value as follows:
- Let v be the integer value represented by the octal number comprising the sequence of octal-digits in an octal-escape-sequence or by the hexadecimal number comprising the sequence of hexadecimal-digits in a hexadecimal-escape-sequence.
- If v does not exceed the range of representable values of the character-literal's type, then the value is v.
- ...
- Each numeric-escape-sequence (5.13.3 [lex.ccon])
that specifies an integer value vcontributes a single code unit with a value as follows:
- Let v be the integer value represented by the octal number comprising the sequence of octal-digits in an octal-escape-sequence or by the hexadecimal number comprising the sequence of hexadecimal-digits in a hexadecimal-escape-sequence.
- If v does not exceed the range of representable values of the string-literal's array element type, then the value is v.
- ...
[Accepted at the July, 2022 meeting.]
Subclause 5.13.3 [lex.ccon] does not specify how the characters in an octal-escape-sequence or hexadecimal-escape-sequence are interpreted to obtain the integer value v that is used in bullet 3.2:
- ...
- A character-literal with a c-char-sequence consisting of a single numeric-escape-sequence that specifies an integer value v has a value as follows:
- ...
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-08-19 07:54:33 | admin | set | status: ready -> cd6 |
2022-02-25 00:00:00 | admin | create | |
2022-02-18 07:47:23 | admin | set | messages: + msg6748 |