http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57620
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- There seems to be more issues in the raw string literal lexing. E.g. const char *s = R"a??/(x)a??/"; should be I think handled the same as const char *s = "x"; with -std=c++11 or -std=gnu++11 -trigraphs, but is not. We only revert the phase 1 and phase 2 transformations in between ( and ), but they should actually be reverted everywhere between the " after R and the final ".