aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-01-24 07:00:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-01-24 07:00:15 +0000
commita0236882378717d745e596030d941dd9a987a84d (patch)
tree297c3b7805f81e77d3b1544c7f05aa334da1345c /gcc/go
parenta7a790e9ec4f9abb149db11f6d765043c7aca245 (diff)
downloadgcc-a0236882378717d745e596030d941dd9a987a84d.zip
gcc-a0236882378717d745e596030d941dd9a987a84d.tar.gz
gcc-a0236882378717d745e596030d941dd9a987a84d.tar.bz2
compiler: Better error message for invalid use of predeclared function.
From-SVN: r183466
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/expressions.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index ebecbbd..0373530 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;
}