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

--- Comment #6 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:72bdfcb848327020f62f72405d72cf85650666e1

commit r12-7850-g72bdfcb848327020f62f72405d72cf85650666e1
Author: Jason Merrill <ja...@redhat.com>
Date:   Sat Mar 26 20:38:54 2022 -0400

    c++: missing aggregate base ctor [PR102045]

    When make_base_init_ok changes a call to a complete constructor into a call
    to a base constructor, we were never marking the base ctor as used, so it
    didn't get emitted.

            PR c++/102045

    gcc/cp/ChangeLog:

            * call.cc (make_base_init_ok): Call make_used.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/aggr-base12.C: New test.

Reply via email to