diff options
Diffstat (limited to 'gcc/go')
-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 1089c6d..bc27480 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -6397,7 +6397,8 @@ Bound_method_expression::do_check_types(Gogo*) tree Bound_method_expression::do_get_tree(Translate_context*) { - gcc_unreachable(); + error_at(this->location(), "reference to method other than calling it"); + return error_mark_node; } // Make a method expression. |