------- Comment #2 from jason at gcc dot gnu dot org 2009-01-03 00:21 ------- Subject: Bug 38698
Author: jason Date: Sat Jan 3 00:19:55 2009 New Revision: 143024 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143024 Log: PR c++/38698 * typeck2.c (process_init_constructor_union): Handle excess initializers. (process_init_constructor_record): Likewise. PR c++/38684 * typeck2.c (digest_init_r): Don't use process_init_constructor for non-aggregate classes. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist11.C trunk/gcc/testsuite/g++.dg/cpp0x/initlist12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698