OSDN Git Service

compiler: Better error message for invalid use of predeclared function.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2012 07:00:15 +0000 (07:00 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2012 07:00:15 +0000 (07:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183466 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/expressions.cc

index ebecbbd..0373530 100644 (file)
@@ -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;
     }