------- Comment #1 from jakub at gcc dot gnu dot org  2009-12-22 10:34 -------
It is not broken, but behaves as mandated by the standard.  See [lex.ccon].
character-literal:
  'c-char-sequence'
  L'c-char-sequence'
c-char-sequence:
  c-char
  c-char-sequence c-char
c-char:
  any member of the source character set except the single-quote ’, backslash
\, or new-line character
  escape-sequence
  universal-character-name
escape-sequence:
  simple-escape-sequence
  octal-escape-sequence
  hexadecimal-escape-sequence
hexadecimal-escape-sequence:
  \x hexadecimal-digit
  hexadecimal-escape-sequence hexadecimal-digit

And [lex.ccon]/4 says:
The escape \xhhh consists of the backslash followed by x followed by one or
more hexadecimal digits that are taken to specify the value of the desired
character. There is no limit to the number of digits in a hexadecimal sequence.
A sequence of octal or hexadecimal digits is terminated by the first character
that is not an octal digit or a hexadecimal digit, respectively.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42459

Reply via email to