This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47850] [4.6 Regression] ICE in gfc_conv_array_initializer
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 6 Mar 2011 20:15:52 +0000
- Subject: [Bug fortran/47850] [4.6 Regression] ICE in gfc_conv_array_initializer
- Auto-submitted: auto-generated
- References: <bug-47850-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47850
--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> 2011-03-06 20:15:42 UTC ---
Author: pault
Date: Sun Mar 6 20:15:38 2011
New Revision: 170720
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170720
Log:
2011-03-06 Paul Thomas <pault@gcc.gnu.org>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/47850
* expr.c (gfc_is_constant_expr): Only use gfc_constant_ac if
the expression has an iterator. Otherwise, iterate through the
array, checking for constant expressions for each element.
2011-03-06 Paul Thomas <pault@gcc.gnu.org>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/47850
* gfortran.dg/array_constructor_37.f90 : New test.
Added:
trunk/gcc/testsuite/gfortran.dg/array_constructor_37.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/testsuite/ChangeLog