This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60224] [4.7/4.8/4.9 Regression] ICE using invalid initializer for array
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Feb 2014 14:57:25 +0000
- Subject: [Bug c++/60224] [4.7/4.8/4.9 Regression] ICE using invalid initializer for array
- Auto-submitted: auto-generated
- References: <bug-60224-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60224
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 21 14:56:53 2014
New Revision: 208002
URL: http://gcc.gnu.org/viewcvs?rev=208002&root=gcc&view=rev
Log:
PR c++/60224
* decl.c (cp_complete_array_type, maybe_deduce_size_from_array_init):
Don't get confused by a CONSTRUCTOR that already has a type.
Added:
trunk/gcc/testsuite/g++.dg/init/array36.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c