This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40239] Aggregate initialization requires copy constructor
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2010 15:12:11 -0000
- Subject: [Bug c++/40239] Aggregate initialization requires copy constructor
- References: <bug-40239-16474@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from dodji at gcc dot gnu dot org 2010-04-07 15:12 -------
Subject: Bug 40239
Author: dodji
Date: Wed Apr 7 15:11:42 2010
New Revision: 158066
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158066
Log:
Fix PR c++/40239
gcc/cp/ChangeLog:
PR c++/40239
* typeck2.c (process_init_constructor_record):
value-initialize members that are are not explicitely
initialized.
gcc/testsuite/ChangeLog:
PR c++/40239
* g++.dg/init/aggr5.C: New test.
* g++.dg/init/aggr5.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/init/aggr5.C
trunk/gcc/testsuite/g++.dg/init/aggr6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40239