2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77429
* dependency.c (gfc_check_dependency): Convert gcc_assert() to
a conditional and possible call to gfc_internal_error().
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77429
* gfortran.dg/pr77429.f90: New test.
From-SVN: r240477
+2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/77429
+ * dependency.c (gfc_check_dependency): Convert gcc_assert() to
+ a conditional and possible call to gfc_internal_error().
+
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77694
&& strcmp (expr1->value.function.name, "_F.caf_get") == 0)
return 0;
- gcc_assert (expr1->expr_type == EXPR_VARIABLE);
+ if (expr1->expr_type != EXPR_VARIABLE)
+ gfc_internal_error ("gfc_check_dependency: expecting an EXPR_VARIABLE");
switch (expr2->expr_type)
{
+2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/77429
+ * gfortran.dg/pr77429.f90: New test.
+
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/77694
--- /dev/null
+! { dg-do compile }
+program p
+ shape(1) = 0 ! { dg-error "expression in variable definition context" }
+ shape(1,2) = 0 ! { dg-error "expression in variable definition context" }
+ shape(1,2,3) = 0 ! { dg-error "Too many arguments in call" }
+ lbound([1]) = 0 ! { dg-error "expression in variable definition context" }
+end