fortran/
PR fortran/13792
* simplify.c (gfc_simplify_bound): Copy the bound expression.
testsuite/
PR fortran/13792
* gfortran.fortran-torture/execute/bounds.f90: Add check for
compile-time simplification.
From-SVN: r84773
PR fortran/15140
* trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion.
-
+
+ PR fortran/13792
+ * simplify.c (gfc_simplify_bound): Copy the bound expression.
+
2004-07-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/15324
i = mpz_get_si (dim->value.integer);
if (upper)
- return as->upper[i-1];
+ return gfc_copy_expr (as->upper[i-1]);
else
- return as->lower[i-1];
+ return gfc_copy_expr (as->lower[i-1]);
}
PR fortran/15140
* gfortran.dg/pr15140.f90: New test.
+ PR fortran/13792
+ * gfortran.fortran-torture/execute/bounds.f90: Add check for
+ compile-time simplification.
+
2004-07-14 Mike Stump <mrs@apple.com>
* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.
integer, dimension(5) :: j
integer i
+ ! Check compile time simplification
+ if (lbound(j,1).ne.1 .or. ubound(j,1).ne.5) call abort ()
+
allocate (a(3:8, 6:7))
! With one parameter