Commit b6493d38 by Ian Lance Taylor

Avoid crash when selecting on non-channel.

From-SVN: r168473
parent 017096ca
......@@ -4165,6 +4165,14 @@ Select_clauses::get_tree(Translate_context* context,
continue;
}
if (p->channel()->type()->channel_type() == NULL)
{
// We should have given an error in the send or receive
// statement we created via lowering.
gcc_assert(saw_errors());
return error_mark_node;
}
tree channel_tree = p->channel()->get_tree(context);
if (channel_tree == error_mark_node)
return error_mark_node;
......
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