projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e6c2a2
)
Correct test for number of arguments to append.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 22 Dec 2010 06:33:02 +0000
(06:33 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 331238e638eaf9854baffe85be5e33fbc80f0c25..2b602561218daa31eec91dd4256337e96f58cdb9 100644
(file)
--- 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;