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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:90cbc769006a43ed17d2384b3a0a4634f315d3fd

commit r11-6866-g90cbc769006a43ed17d2384b3a0a4634f315d3fd
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Jan 22 11:57:27 2021 -0500

    c++: Fix base copy elision thinko [PR98744]

    As Jakub points out in the PR, I was mixing up
    DECL_HAS_IN_CHARGE_PARM_P (which is true for the abstract maybe-in-charge
    constructor) and DECL_HAS_VTT_PARM_P (which is true for a base constructor
    that needs to handle virtual bases).

    gcc/cp/ChangeLog:

            PR c++/98744
            * call.c (make_base_init_ok): Use DECL_HAS_VTT_PARM_P.

    gcc/testsuite/ChangeLog:

            PR c++/98744
            * g++.dg/init/elide7.C: New test.

Reply via email to