This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33167] Hex constant characters with \x escape not parsing correctly
- From: "raeburn at raeburn dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2007 19:45:36 -0000
- Subject: [Bug c/33167] Hex constant characters with \x escape not parsing correctly
- References: <bug-33167-15013@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from raeburn at raeburn dot org 2007-08-24 19:45 -------
(In reply to comment #2)
> Yep, looks like you are right from the standard. That sucks then. I wish it
> were the other way because I don't see a way to enter a literal single
> character in hex followed a by single character [A-Z0-9] without escape
> sequences.
char *string = "\x01\x02\x03" "Bob";
should work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33167