Commit 196bc407 by Ian Lance Taylor

Avoid dangling open function after erroneous method expression.

From-SVN: r170302
parent 1e2afadb
......@@ -10335,7 +10335,10 @@ Selector_expression::lower_method_expression(Gogo* gogo)
// Even though we found the method above, if it has an error type we
// may see an error here.
if (bm->is_error_expression())
return bm;
{
gogo->finish_function(location);
return bm;
}
Expression_list* args;
if (method_parameters == NULL)
......
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