]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/37531 (ICE with invalid array initialization)
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Sep 2008 22:05:15 +0000 (00:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Sep 2008 22:05:15 +0000 (00:05 +0200)
commit326a4d4ef1c3b80f4cfbf17f52a42c263abb25df
treed9d2e309acc892504ceaae7258e97d76c4d9fb0b
parent08222495cc9ea47746057e95002b7a467309964c
re PR c++/37531 (ICE with invalid array initialization)

PR c++/37531
* semantics.c (finish_compound_literal): Return error_mark_node if
type is errorneous.

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

From-SVN: r140400
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash47.C [new file with mode: 0644]