Dear Jerry, I am not sure about one of the submitters reviewing the patch :-) Fortunately, Dominique d'Humieres ran it by his own tests and found that it did not break anything.
Submitted as revision 170720. Thanks to you both! Paul 2011-03-06 Paul Thomas <pa...@gcc.gnu.org> Jerry DeLisle <jvdeli...@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 <pa...@gcc.gnu.org> Jerry DeLisle <jvdeli...@gcc.gnu.org> PR fortran/47850 * gfortran.dg/array_constructor_37.f90 : New test.