diff options
Diffstat (limited to 'gcc/go/gofrontend/parse.cc')
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index 1dac002..c9a5485 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -4422,7 +4422,7 @@ Parse::if_stat() { Location semi_loc = this->location(); if (this->advance_token()->is_op(OPERATOR_LCURLY)) - go_error_at(semi_loc, "missing %<{%> after if clause"); + go_error_at(semi_loc, "unexpected semicolon or newline, expecting %<{%> after if clause"); // Otherwise we will get an error when we call this->block // below. } @@ -5359,7 +5359,7 @@ Parse::for_stat(Label* label) { Location semi_loc = this->location(); if (this->advance_token()->is_op(OPERATOR_LCURLY)) - go_error_at(semi_loc, "missing %<{%> after for clause"); + go_error_at(semi_loc, "unexpected semicolon or newline, expecting %<{%> after for clause"); // Otherwise we will get an error when we call this->block // below. } @@ -5430,7 +5430,7 @@ Parse::for_clause(Expression** cond, Block** post) *cond = NULL; else if (this->peek_token()->is_op(OPERATOR_LCURLY)) { - go_error_at(this->location(), "missing %<{%> after for clause"); + go_error_at(this->location(), "unexpected semicolon or newline, expecting %<{%> after for clause"); *cond = NULL; *post = NULL; return; |