https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95440
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:b88498204521731f46b439b33f936009fedfdf35 commit r10-8289-gb88498204521731f46b439b33f936009fedfdf35 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Sat Jun 13 10:36:29 2020 +0100 coroutines: Make call argument handling more robust [PR95440] build_new_method_call is supposed to be able to handle a null arguments list pointer (when the method has no parms). There were a couple of places where uses of the argument list pointer were not defended against NULL. gcc/cp/ChangeLog: PR c++/95440 * call.c (add_candidates): Use vec_safe_length() for testing the arguments list. (build_new_method_call_1): Use vec_safe_is_empty() when checking for an empty args list. gcc/testsuite/ChangeLog: PR c++/95440 * g++.dg/coroutines/pr95440.C: New test. (cherry picked from commit a9eec9625ea7165292958be04899b057804192fb)