This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79049] Unknown escape sequence not correctly pointed out
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jan 2017 19:10:19 +0000
- Subject: [Bug c/79049] Unknown escape sequence not correctly pointed out
- Auto-submitted: auto-generated
- References: <bug-79049-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79049
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-01-19
CC| |dmalcolm at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this bug.
Notes to self: warning is emitted by convert_escape in libcpp/charset.c:1466
here:
1461 /* diagnostic.c does not support "%03o". When it does, this
1462 code can use %03o directly in the diagnostic again. */
1463 char buf[32];
1464 sprintf(buf, "%03o", (int) c);
1465 cpp_error (pfile, CPP_DL_PEDWARN,
1466 "unknown escape sequence: '\\%s'", buf);
when first parsing the string token, via cpp_interpret_string, and so
loc_readers is NULL.