projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a790e
)
compiler: Better error message for invalid use of predeclared function.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 24 Jan 2012 07:00:15 +0000
(07:00 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 24 Jan 2012 07:00:15 +0000
(07:00 +0000)
From-SVN: r183466
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index
ebecbbd
..
0373530
100644
(file)
--- 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;
}