diff options
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 9821981..bbc5c11 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -297,6 +297,11 @@ cp_lexer_new_main (void) string constant concatenation. */ c_lex_return_raw_strings = false; + /* Subsequent preprocessor diagnostics should use compiler + diagnostic functions to get the compiler source location. */ + cpp_get_options (parse_in)->client_diagnostic = true; + cpp_get_callbacks (parse_in)->error = cp_cpp_error; + gcc_assert (lexer->next_token->type != CPP_PURGED); return lexer; } |