summaryrefslogtreecommitdiff
path: root/gcc/genmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genmatch.c')
-rw-r--r--gcc/genmatch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/genmatch.c b/gcc/genmatch.c
index 72666373740..f3d979735ba 100644
--- a/gcc/genmatch.c
+++ b/gcc/genmatch.c
@@ -3857,6 +3857,9 @@ parser::parse_expr ()
e->expr_type = expr_type;
return op;
}
+ else if (!(token->flags & PREV_WHITE))
+ fatal_at (token, "expected expression operand");
+
e->append_op (parse_op ());
}
while (1);