compiler: Support RecvStmt = ExpressionList "=" RecvExpr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218753
138bc75d-0d04-0410-961f-
82ee72b054a4
e = Expression::make_receive(*channel, (*channel)->location());
}
+ if (!saw_comma && this->peek_token()->is_op(OPERATOR_COMMA))
+ {
+ this->advance_token();
+ // case v, e = <-c:
+ if (!e->is_sink_expression())
+ *val = e;
+ e = this->expression(PRECEDENCE_NORMAL, true, true, NULL, NULL);
+ saw_comma = true;
+ }
+
if (this->peek_token()->is_op(OPERATOR_EQ))
{
if (!this->advance_token()->is_op(OPERATOR_CHANOP))