2016-12-01 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78279
* dependency.c (identical_array_ref): Convert gcc_assert to conditional
and gfc_internal_error.
2016-12-01 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78279
* gfortran.dg/pr78279.f90: New test.
From-SVN: r243131
+2016-12-01 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78279
+ * dependency.c (identical_array_ref): Convert gcc_assert to conditional
+ and gfc_internal_error.
+
2016-11-30 Andre Vehreschild <vehre@gcc.gnu.org>
* check.c (gfc_check_allocated): By pass the caf_get call and check on
if (a1->type == AR_ELEMENT && a2->type == AR_ELEMENT)
{
- gcc_assert (a1->dimen == a2->dimen);
+ if (a1->dimen != a2->dimen)
+ gfc_internal_error ("identical_array_ref(): inconsistent dimensions");
+
for (i = 0; i < a1->dimen; i++)
{
if (gfc_dep_compare_expr (a1->start[i], a2->start[i]) != 0)
+2016-12-01 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78279
+ * gfortran.dg/pr78279.f90: New test.
+
2016-12-01 David Edelsohn <dje.gcc@gmail.com>
* g++.dg/tls/pr77285-1.C: dg-add-options tls
--- /dev/null
+! { dg-do compile }
+! { dg-options "-Ofast" }
+program p
+ integer :: i
+ real :: z(2,4)
+ z = 0.0
+ do i = 1, 3
+ if ( z(i) > z(1,i+1) ) print *, i ! { dg-error "mismatch in array reference" }
+ end do
+end