https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102045
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:14146bb58f279659279cd189bf95c3b0cb5fe1ac commit r11-9705-g14146bb58f279659279cd189bf95c3b0cb5fe1ac 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.c (make_base_init_ok): Call make_used. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/aggr-base12.C: New test.