This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37531] [4.4 regression] ICE with invalid array initialization
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2008 22:06:46 -0000
- Subject: [Bug c++/37531] [4.4 regression] ICE with invalid array initialization
- References: <bug-37531-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2008-09-16 22:06 -------
Subject: Bug 37531
Author: jakub
Date: Tue Sep 16 22:05:15 2008
New Revision: 140400
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140400
Log:
PR c++/37531
* semantics.c (finish_compound_literal): Return error_mark_node if
type is errorneous.
* g++.dg/parse/crash47.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/crash47.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37531