2014-03-09 Janus Weil <janus@gcc.gnu.org>
Backport from 4.8
2014-03-08 Janus Weil <janus@gcc.gnu.org>
PR fortran/60450
* simplify.c (gfc_simplify_shape): Only clear shape if it was really
created successfully.
2014-03-09 Janus Weil <janus@gcc.gnu.org>
Backport from 4.8
2014-03-08 Janus Weil <janus@gcc.gnu.org>
PR fortran/60450
* gfortran.dg/shape_8.f90: New.
From-SVN: r208443
+2014-03-09 Janus Weil <janus@gcc.gnu.org>
+
+ Backport from 4.8
+ 2014-03-08 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/60450
+ * simplify.c (gfc_simplify_shape): Only clear shape if it was really
+ created successfully.
+
2014-03-02 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/60341
if (e == &gfc_bad_expr || range_check (e, "SHAPE") == &gfc_bad_expr)
{
gfc_free_expr (result);
- if (t)
+ if (t == SUCCESS)
gfc_clear_shape (shape, source->rank);
return &gfc_bad_expr;
}
gfc_constructor_append_expr (&result->value.constructor, e, NULL);
}
- if (t)
+ if (t == SUCCESS)
gfc_clear_shape (shape, source->rank);
return result;
+2014-03-09 Janus Weil <janus@gcc.gnu.org>
+
+ Backport from 4.8
+ 2014-03-08 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/60450
+ * gfortran.dg/shape_8.f90: New.
+
2014-03-02 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/60341
--- /dev/null
+! { dg-do compile }
+!
+! PR 60450: [4.7/4.8 Regression] ICE with SHAPE intrinsic
+!
+! Contributed by Dave Allured <dave.allured@noaa.gov>
+
+ real, allocatable :: x(:,:)
+ allocate (x(3,2), source=99.)
+ print *, shape (x / 10.0)
+end