This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Apr 2011 23:34:01 +0000
- Subject: [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
- Auto-submitted: auto-generated
- References: <bug-48740-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48740
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 23:33:42 UTC ---
Author: jakub
Date: Sat Apr 23 23:33:39 2011
New Revision: 172904
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172904
Log:
PR preprocessor/48740
* lex.c (lex_raw_string): When raw string ends with
??) followed by raw prefix and ", ensure it is preprocessed
with ??) rather than ??].
* c-c++-common/raw-string-11.c: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/c-c++-common/raw-string-11.c
Modified:
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/libcpp/ChangeLog
branches/gcc-4_6-branch/libcpp/lex.c