aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index a2c60b7..b89eca8 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -785,6 +785,11 @@ _cpp_parse_expr (pfile)
cpp_ice (pfile, "lex returns a NAME");
case ERROR:
goto syntax_error;
+ case '#':
+ /* We get '#' when get_directive_token hits a syntactically
+ invalid assertion predicate. _cpp_parse_assertion has
+ already issued an error. */
+ goto syntax_error;
default:
cpp_error (pfile, "invalid character in #if");
goto syntax_error;