Commit 0cba839e by Ian Lance Taylor

Traverse erroneous send/receive statements.

From-SVN: r170473
parent 23e6d4a5
......@@ -4203,6 +4203,12 @@ Parse::comm_clause(Select_clauses* clauses, bool* saw_default)
if (got_case)
clauses->add(is_send, channel, val, var, is_default, statements, location);
else if (statements != NULL)
{
// Add the statements to make sure that any names they define
// are traversed.
this->gogo_->add_block(statements, location);
}
}
// CommCase = ( "default" | ( "case" ( SendExpr | RecvExpr) ) ) ":" .
......
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