Commit 8629c998 by Ian Lance Taylor

Don't crash when referring to method other than calling it.

From-SVN: r170028
parent 0cf1541f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment