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

Updates issue 7.

From-SVN: r185934
This commit is contained in:
Ian Lance Taylor 2012-03-28 22:25:53 +00:00
parent ad57e71d44
commit e72e40d1b5
1 changed files with 2 additions and 1 deletions

View File

@ -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.