c++: Fix cp_build_function_call_vec [PR 98626]
authorNathan Sidwell <nathan@acm.org>
Wed, 13 Jan 2021 13:13:12 +0000 (05:13 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 13 Jan 2021 13:18:23 +0000 (05:18 -0800)
commit11cbea852b0ae2b0f17a9caeaf6344d689231c2f
tree2d1d4c21ed61c7a24060c4efbbc7bb2f87aa1823
parent264a1269b44ccd4e5c37307d49461dd4ff52457c
c++: Fix cp_build_function_call_vec [PR 98626]

I misunderstood the cp_build_function_call_vec API, thinking a NULL
vector was an acceptable way of passing no arguments.  You need to
pass a vector of no elements.

PR c++/98626
gcc/cp/
* module.cc (module_add_import_initializers):  Pass a
zero-element argument vector.
gcc/cp/module.cc