re PR fortran/47850 (ICE in gfc_conv_array_initializer)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 6 Mar 2011 20:15:38 +0000 (20:15 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 6 Mar 2011 20:15:38 +0000 (20:15 +0000)
commit8e1e41e7afc6a9cc022c724f99f488029f22a680
treee9edb9949d0537de89a1f09509893c31efd28885
parent787a8c0feb104e6de4349c9485becd7292c2c9f7
re PR fortran/47850 (ICE in gfc_conv_array_initializer)

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.

Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>
From-SVN: r170720
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_37.f90 [new file with mode: 0644]