Commit b56ba885 by Ian Lance Taylor

compiler: Accept trailing comma after expression in type conversion.

From-SVN: r194176
parent d59a4c82
...@@ -2979,6 +2979,8 @@ Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit, ...@@ -2979,6 +2979,8 @@ Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit,
this->advance_token(); this->advance_token();
Expression* expr = this->expression(PRECEDENCE_NORMAL, false, true, Expression* expr = this->expression(PRECEDENCE_NORMAL, false, true,
NULL); NULL);
if (this->peek_token()->is_op(OPERATOR_COMMA))
this->advance_token();
if (this->peek_token()->is_op(OPERATOR_ELLIPSIS)) if (this->peek_token()->is_op(OPERATOR_ELLIPSIS))
{ {
error_at(this->location(), error_at(this->location(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment