OSDN Git Service

Fix PR c++/40239
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 15:11:42 +0000 (15:11 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 15:11:42 +0000 (15:11 +0000)
commitf079d28e128eab6516d4c523af67ac01f5851bc0
treeadf46843d8ba5e7d764fe540bc2791c6e1310564
parented40c3d0a270af3b5df9e9669a3a7207fe296ea4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158066 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/aggr5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/aggr6.C [new file with mode: 0644]