Commit 22508cae by Ian Lance Taylor

re PR go/49889 (Calling a function whose name is obscured by a local variable…

re PR go/49889 (Calling a function whose name is obscured by a local variable does not produce an error)

	PR go/49889
gccgo : Fixed bug 49889.
        Now the compiler emits a proper error when a function
        called in a tuple assignment statement can not be
        typed as a function.

From-SVN: r177310
parent ea6c2b0e
......@@ -9682,6 +9682,8 @@ Call_result_expression::do_type()
Function_type* fntype = ce->get_function_type();
if (fntype == NULL)
{
if (ce->issue_error())
this->report_error(_("expected function"));
this->set_is_error();
return Type::make_error_type();
}
......
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