]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/56241 (ICE in toplev.c:332 on invalid)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2013 17:24:37 +0000 (18:24 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2013 17:24:37 +0000 (18:24 +0100)
commit953142867a72fd748ca54e5aeec49afe99062dd2
treea414c6ad4a7bab3824674dbe9c7a865a055d73eb
parentb09bd091660d5b8b6d381150032dc358543a91f7
backport: re PR c++/56241 (ICE in toplev.c:332 on invalid)

Backported from mainline
2013-02-07  Jakub Jelinek  <jakub@redhat.com>

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: r196146
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash61.C [new file with mode: 0644]