Message ID | mcripqdstrw.fsf@coign.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r 8a209d96ec69 go/expressions.cc --- a/go/expressions.cc Tue Aug 02 17:13:31 2011 -0700 +++ b/go/expressions.cc Wed Aug 03 20:53:47 2011 -0700 @@ -9682,6 +9682,8 @@ 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(); }