https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95440

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:a9eec9625ea7165292958be04899b057804192fb

commit r11-1184-ga9eec9625ea7165292958be04899b057804192fb
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Wed Jun 10 00:15:28 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.

Reply via email to