Commit d7ab2512 by Ian Lance Taylor

Correct test for number of arguments to append.

From-SVN: r168163
parent 8e6c2a27
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment