+2018-03-16 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/69395
+ * decl.c (merge_array_spec): Correct the error condition.
+
2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78741
}
}
- if (to->rank + to->corank >= GFC_MAX_DIMENSIONS)
+ if (to->rank + to->corank > GFC_MAX_DIMENSIONS)
{
gfc_error ("Sum of array rank %d and corank %d at %C exceeds maximum "
"allowed dimensions of %d",
+2018-03-16 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/69395
+ * gfortran.dg/pr69395.f90: Add test for max dimensions
+
2018-03-16 Vladimir Makarov <vmakarov@redhat.com>
PR target/84876
! { dg-do compile }
! { dg-options "-fcoarray=single" }
program p
+real, dimension(1,2,1,2,1,2,1,2), codimension[1,2,1,2,1,2,*] :: y
real, dimension(1,2,1,2,1,2,1,2), codimension[1,2,1,2,1,2,1,*] :: z ! { dg-error "allowed dimensions" }
end