From: ian Date: Wed, 28 Mar 2012 22:25:37 +0000 (+0000) Subject: compiler: avoid an ICE on bound interface methods used as values. X-Git-Tag: upstream/4.9.2~13533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11bbe02609b7231a2edf432d225b8e10a7431310;p=platform%2Fupstream%2Flinaro-gcc.git compiler: avoid an ICE on bound interface methods used as values. Updates issue 7. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185933 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index f2a81de..f1e0639 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -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.