re PR c++/15172 (Copy constructor optimization in aggregate initialization)
authorMark Mitchell <mark@codesourcery.com>
Mon, 1 Nov 2004 00:07:10 +0000 (00:07 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 1 Nov 2004 00:07:10 +0000 (00:07 +0000)
commit80439563c5704b4daca5e0dbc898771523354645
treeec81a164c2f746c8558e3f7779a015d4d716b7c0
parent8d511b90979177c471d1b96aad76ec064bd3b517
re PR c++/15172 (Copy constructor optimization in aggregate initialization)

PR c++/15172
* typeck2.c (store_init_value): Use split_nonconstant_init even
for types that require construction.

PR c++/15172
* g++.dg/init/aggr2.C: New test.

From-SVN: r89922
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/aggr2.C [new file with mode: 0644]