This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15172] [3.3/3.4 regression] Copy constructor optimization in aggregate initialization
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2004 00:07:16 -0000
- Subject: [Bug c++/15172] [3.3/3.4 regression] Copy constructor optimization in aggregate initialization
- References: <20040427165935.15172.michael.spencer@ubs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-01 00:07 -------
Subject: Bug 15172
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-11-01 00:07:10
Modified files:
gcc/cp : ChangeLog typeck2.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: aggr2.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4466&r2=1.4467
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.177&r2=1.178
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4528&r2=1.4529
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/aggr2.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15172