2010-05-16 Daniel Franke <franke.daniel@gmail.com>
PR fortran/35779
* array.c (match_array_list): Revert functional change of 2010-05-13.
gcc/fortran/:
2010-05-16 Daniel Franke <franke.daniel@gmail.com>
PR fortran/35779
* gfortran.dg/initialization_25.f90: Commented testcase.
* gfortran.dg/initialization_26.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159465
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-16 Daniel Franke <franke.daniel@gmail.com>
+
+ PR fortran/35779
+ * array.c (match_array_list): Revert change from 2010-05-13.
+
2010-05-16 Richard Guenther <rguenther@suse.de>
* trans-decl.c (module_htab_decls_hash): Revert last change.
for (n = 1;; n++)
{
- m = gfc_match_iterator (&iter, gfc_init_expr_flag);
+ m = gfc_match_iterator (&iter, 0);
if (m == MATCH_YES)
break;
if (m == MATCH_ERROR)
+2010-05-16 Daniel Franke <franke.daniel@gmail.com>
+
+ PR fortran/35779
+ * gfortran.dg/initialization_25.f90: Commented testcase.
+ * gfortran.dg/initialization_26.f90: New.
+
2010-05-16 Richard Guenther <rguenther@suse.de>
* gcc.dg/pr43317.c: Do not pass -fipa-type-escape.
! Tescase contributed by
! Dick Hendrickson <dick DOT hendrickson AT gmail DOT com>
!
+! Initial patch was reverted as it broke nested loops (see initialization_26.f90).
+!
- INTEGER :: J1
- INTEGER,PARAMETER :: I3(10) = (/(J1,J1=10,1,-1)/)
- INTEGER,PARAMETER :: I2(10) = (/(J1,J1=its_bad,1,-1)/) ! { dg-error "does not reduce" }
+! INTEGER :: J1
+! INTEGER,PARAMETER :: I2(10) = (/(J1,J1=its_bad,1,-1)/) ! { dg - error "does not reduce" }
END
--- /dev/null
+! { dg-do "compile" }
+!
+! Verify that the outer do-loop counter 'j' is accepted as
+! as end-expression of the inner loop.
+!
+
+ integer i, j
+ integer, parameter :: n = size( [( [(i*j,i=1,j)], j=1,2)] )
+end