[Bug c/57707] gcc misinterprets hex escapes in constant strings
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 25 22:33:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57707
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to duncan_roe@acslink.net.au from comment #5)
> There's no need for that. C is defined in Kernighan & Ritchie's "The C
> Programming Language". They mandate \xhh as a character escape. No mention
> of "except when the next character happens to be a hex digit".
No it is not defined there. It is defined by the ISO C standard. The section
6.4.4.4 is where this specific item is defined.
More information about the Gcc-bugs
mailing list