compiler: Accept trailing comma after expression in type conversion.

From-SVN: r194176
This commit is contained in:
Ian Lance Taylor 2012-12-05 01:09:41 +00:00
parent d59a4c82a6
commit b56ba8857e

View File

@ -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(),