diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-17 11:02:11 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-17 11:02:11 +0000 |
commit | 654561a4daa4b3b037c44701757319da26b3aea9 (patch) | |
tree | c41c84295b2f389699b54d6c2dbf3ec49bb30f64 /gcc/genmatch.c | |
parent | 6f86992324477d3ef11f116d96d8e7eacf854187 (diff) | |
download | gcc-654561a4daa4b3b037c44701757319da26b3aea9.tar.gz |
2015-09-17 Richard Biener <rguenther@suse.de>
* genmatch.c (parser::parse_expr): Improve error message
for mis-placed flags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227859 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genmatch.c')
-rw-r--r-- | gcc/genmatch.c | 3 |
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); |