aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2010-12-22 06:33:02 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-12-22 06:33:02 +0000
commitd7ab2512cd9b4330fb12d86d49219782375e3ac4 (patch)
tree7f1706a7d33ebf5adeea101d016144338eeae7c5 /gcc/go
parent8e6c2a27c533e2523dfcb28310aae7b6f1854edc (diff)
downloadgcc-d7ab2512cd9b4330fb12d86d49219782375e3ac4.zip
gcc-d7ab2512cd9b4330fb12d86d49219782375e3ac4.tar.gz
gcc-d7ab2512cd9b4330fb12d86d49219782375e3ac4.tar.bz2
Correct test for number of arguments to append.
From-SVN: r168163
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/expressions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index 331238e..2b60256 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -7382,7 +7382,7 @@ Builtin_call_expression::do_check_types(Gogo*)
case BUILTIN_APPEND:
{
const Expression_list* args = this->args();
- if (args == NULL || args->empty())
+ if (args == NULL || args->size() < 2)
{
this->report_error(_("not enough arguments"));
break;