diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-12-22 06:33:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-12-22 06:33:02 +0000 |
commit | d7ab2512cd9b4330fb12d86d49219782375e3ac4 (patch) | |
tree | 7f1706a7d33ebf5adeea101d016144338eeae7c5 /gcc/go | |
parent | 8e6c2a27c533e2523dfcb28310aae7b6f1854edc (diff) | |
download | gcc-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.cc | 2 |
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; |