Commit cdc6637d by Daniel Franke Committed by Daniel Franke

re PR fortran/35779 (error pointer wrong in PARAMETER)

gcc/fortran/:
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.

From-SVN: r159465
parent 6b87d1b4
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.
......
......@@ -879,7 +879,7 @@ match_array_list (gfc_constructor_base *result)
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.
......
......@@ -4,8 +4,9 @@
! 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
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment