re PR c++/56241 (ICE in toplev.c:332 on invalid)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Feb 2013 21:27:55 +0000 (22:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Feb 2013 21:27:55 +0000 (22:27 +0100)
commitf11c7048b94d6d0c1a37f1e765fc17a69734daec
tree00eb9d8c1970a6ee44878a9aedfc5bdd8718e67a
parent12eabbda6bd7fab8482c288ed30c73b15c49680c
re PR c++/56241 (ICE in toplev.c:332 on invalid)

PR c++/56241
* init.c (build_vec_init): Don't append NULL values into new_vec.
(build_zero_init_1): Don't push anything into v if recursive call
returned NULL_TREE.
(build_value_init_noctor): Don't push anything into v if
build_value_init call returned NULL_TREE.

* g++.dg/parse/crash61.C: New test.

From-SVN: r195866
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash61.C [new file with mode: 0644]