diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-28 22:25:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-28 22:25:37 +0000 |
commit | 1fbb888cfc96cf90eb15a772d278ee6c9ddfc64e (patch) | |
tree | 61a1af3692d72ac3ad55d90f2e5cf526c2c6bbed /gcc | |
parent | 350733e3886c9b5474b7232e96442469523b6b8c (diff) | |
download | gcc-1fbb888cfc96cf90eb15a772d278ee6c9ddfc64e.zip gcc-1fbb888cfc96cf90eb15a772d278ee6c9ddfc64e.tar.gz gcc-1fbb888cfc96cf90eb15a772d278ee6c9ddfc64e.tar.bz2 |
compiler: avoid an ICE on bound interface methods used as values.
Updates issue 7.
From-SVN: r185933
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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. |