2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77380
* dependency.c (gfc_check_dependency): Do not assert with
-fcoarray=lib.
2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77380
* gfortran.dg/pr77380.f90: New test.
From-SVN: r239796
2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
+ PR fortran/77380
+ * dependency.c (gfc_check_dependency): Do not assert with
+ -fcoarray=lib.
+
+2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
+
PR fortran/77372
simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
gfc_constructor *c;
int n;
+ /* -fcoarray=lib can end up here with expr1->expr_type set to EXPR_FUNCTION
+ and a reference to _F.caf_get, so skip the assert. */
+ if (expr1->expr_type == EXPR_FUNCTION
+ && strcmp (expr1->value.function.name, "_F.caf_get") == 0)
+ return 0;
+
gcc_assert (expr1->expr_type == EXPR_VARIABLE);
switch (expr2->expr_type)
2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
+ PR fortran/77380
+ * gfortran.dg/pr77380.f90: New test.
+
+2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
+
PR fortran/77372
gfortran.dg/pr77372.f90: New test.
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fcoarray=lib -O2" }
+program p
+ integer :: z(2)[*] = 1
+ z(:)[1] = z(:)[*] ! { dg-error "must be a scalar at" }
+end