compiler: avoid an ICE on bound interface methods used as values.
Updates issue 7. From-SVN: r185934
This commit is contained in:
parent
ad57e71d44
commit
e72e40d1b5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue