[Bug c/33167] Hex constant characters with \x escape not parsing correctly

albertmcchan at yahoo dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 7 17:16:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33167

Albert Chan <albertmcchan at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |albertmcchan at yahoo dot com

--- Comment #4 from Albert Chan <albertmcchan at yahoo dot com> ---
if gcc hex escapes is right, then gcc octal escape is wrong
(it just look at first 3 octals)

"\123" = "S"
"\0123" = "\n3"      ??
"\00123" = "\1" "23" ??

personally, i like this octal escape "bug"


More information about the Gcc-bugs mailing list