re PR c++/38698 (ICE initializing union with initializer list)
authorJason Merrill <jason@redhat.com>
Sat, 3 Jan 2009 00:19:55 +0000 (19:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 3 Jan 2009 00:19:55 +0000 (19:19 -0500)
commitfc94bfc598fd5e0aacc9add9cfea4e521d329e97
tree042912cd19fa0aedf83febd250ff3484cda11631
parent005c94297dd2f123b3852cd1a1b57b604d069307
re PR c++/38698 (ICE initializing union with initializer list)

        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.

From-SVN: r143024
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist12.C [new file with mode: 0644]