This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42315] [4.6/4.7/4.8 Regression] ICE with invalid array initializer


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42315

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-12-14 20:58:06 UTC ---
Author: jason
Date: Fri Dec 14 20:57:55 2012
New Revision: 194509

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194509
Log:
    PR c++/42315
    * decl.c (maybe_deduce_size_from_array_init): Don't change the
    variable type.

Added:
    trunk/gcc/testsuite/g++.dg/init/array32.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/g++.dg/gomp/pr34964.C
    trunk/gcc/testsuite/g++.dg/init/array21.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]