diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 01:09:41 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 01:09:41 +0000 |
commit | ea31d11cfd420f8cf6b7096f7349c2aff11d06fe (patch) | |
tree | 2f7a5836d638745c35e16769b85ba5514d508f69 /gcc/go | |
parent | 88f067492d348acca47bd124e2057a6549ade2ff (diff) | |
download | gcc-ea31d11cfd420f8cf6b7096f7349c2aff11d06fe.tar.gz |
compiler: Accept trailing comma after expression in type conversion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194176 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index c13f06b9495..28737554d91 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -2979,6 +2979,8 @@ Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit, this->advance_token(); Expression* expr = this->expression(PRECEDENCE_NORMAL, false, true, NULL); + if (this->peek_token()->is_op(OPERATOR_COMMA)) + this->advance_token(); if (this->peek_token()->is_op(OPERATOR_ELLIPSIS)) { error_at(this->location(), |