https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105265
--- Comment #10 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:728f97cf0431ff342beceea4f91afa1707133248 commit r11-9985-g728f97cf0431ff342beceea4f91afa1707133248 Author: Jason Merrill <ja...@redhat.com> Date: Wed Apr 13 20:18:33 2022 -0400 c++: temp cleanup in new [PR105265] The patch for PR100838 in GCC 11 was limited to -fno-elide-constructors for safety, but this testcase demonstrates that it's also needed without that flag. So let's switch to the GCC 12 patch for PR100838. PR c++/105265 PR c++/100838 gcc/cp/ChangeLog: * call.c (build_user_type_conversion_1): Drop flag_elide_constructors check. (convert_like_internal): Likewise. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist-new6.C: New test.