From: Ian Lance Taylor Date: Tue, 24 Jan 2012 07:00:15 +0000 (+0000) Subject: compiler: Better error message for invalid use of predeclared function. X-Git-Tag: releases/gcc-4.7.0~836 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0236882378717d745e596030d941dd9a987a84d;p=thirdparty%2Fgcc.git compiler: Better error message for invalid use of predeclared function. From-SVN: r183466 --- diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index ebecbbde2000..037353072f3e 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -1328,7 +1328,8 @@ Func_expression::get_tree_without_closure(Gogo* gogo) // can't take their address. if (fntype->is_builtin()) { - error_at(this->location(), "invalid use of special builtin function %qs", + error_at(this->location(), + "invalid use of special builtin function %qs; must be called", this->function_->name().c_str()); return error_mark_node; }