Commit 1fbb888c by Ian Lance Taylor

compiler: avoid an ICE on bound interface methods used as values.

Updates issue 7.

From-SVN: r185933
parent 350733e3
......@@ -10577,7 +10577,8 @@ Interface_field_reference_expression::do_check_types(Gogo*)
tree
Interface_field_reference_expression::do_get_tree(Translate_context*)
{
go_unreachable();
error_at(this->location(), "reference to method other than calling it");
return error_mark_node;
}
// Dump ast representation for an interface field reference.
......
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