]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Correct test for number of arguments to append.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Dec 2010 06:33:02 +0000 (06:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Dec 2010 06:33:02 +0000 (06:33 +0000)
From-SVN: r168163

gcc/go/gofrontend/expressions.cc

index 331238e638eaf9854baffe85be5e33fbc80f0c25..2b602561218daa31eec91dd4256337e96f58cdb9 100644 (file)
@@ -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;