#define S(s) s
const char x = R"(
const char y = S(R"(
void bar ();
void foo ()
#pragma omp parallel num_threads(sizeof R"(
isn't lexed properly.
Created attachment 30459 [details]
Untested fix. Seems to work on these testcases without -save-temps, with -save-temps the line numbers in -lineno dumps are off unfortunately, so some further work is needed. Tom, any ideas?
Date: Wed Jul 10 16:52:19 2013
New Revision: 200879
* lex.c (lex_raw_string): Allow reading new-lines if
in_deferred_pragma or if parsing_args and there is still
data in the current buffer.
* c-c++-common/raw-string-17.c: New test.
* c-c++-common/gomp/pr57824.c: New test.
Fixed for 4.9+.
*** Bug 52852 has been marked as a duplicate of this bug. ***