https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108559
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:b533084d756a2696a3eb6521810e0a0b2182a8e8 commit r13-5611-gb533084d756a2696a3eb6521810e0a0b2182a8e8 Author: Jason Merrill <ja...@redhat.com> Date: Mon Jan 30 18:18:54 2023 -0500 c++: aggregate base and TARGET_EXPR_ELIDING_P [PR108559] We also need to split up a CONSTRUCTOR in cp_genericize_init if we need to add extra copy constructor calls to deal with CWG2403. PR c++/108559 gcc/cp/ChangeLog: * cp-gimplify.cc (any_non_eliding_target_exprs): New. (cp_genericize_init): Check it. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/aggr-base13.C: New test.