https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95319
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:a6deb68d01316055072b8856185da4eaf77836d1 commit r10-8192-ga6deb68d01316055072b8856185da4eaf77836d1 Author: Jason Merrill <ja...@redhat.com> Date: Wed May 27 10:27:25 2020 -0400 c++: Handle multiple aggregate overloads [PR95319]. Here, when considering the two 'insert' overloads, we look for aggregate conversions from the same initializer-list to B<3> or initializer_list<B<3>>. But since my fix for reshape_init overhead on the PR14179 testcase we reshaped the initializer-list directly, leading to an error when we then tried to reshape it differently for the second overload. gcc/cp/ChangeLog: PR c++/95319 * decl.c (reshape_init_array_1): Don't reuse in overload context. gcc/testsuite/ChangeLog: PR c++/95319 * g++.dg/cpp0x/initlist-array12.C: New test. (cherry picked from commit 6efa97ea1d2fe6df1fbb9df78faaa2248a8618d7)