compiler: Accept trailing comma after expression in type conversion.
From-SVN: r194176
This commit is contained in:
parent
d59a4c82a6
commit
b56ba8857e
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user