From: Ian Lance Taylor Date: Wed, 5 Dec 2012 01:09:41 +0000 (+0000) Subject: compiler: Accept trailing comma after expression in type conversion. X-Git-Tag: misc/gccgo-go1_1_2~24^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b56ba8857e384dbc159f9e2078339252b51b6d47;p=thirdparty%2Fgcc.git compiler: Accept trailing comma after expression in type conversion. From-SVN: r194176 --- diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index c13f06b9495a..28737554d91a 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(),