2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85543
* resolve.c (update_current_proc_array_outer_dependency): Avoid NULL
pointer dereference.
2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85543
* gfortran.dg/pr85543.f90: New test.
From-SVN: r260704
+2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/85543
+ * resolve.c (update_current_proc_array_outer_dependency): Avoid NULL
+ pointer dereference.
+
2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85780
/* If SYM has references to outer arrays, so has the procedure calling
SYM. If SYM is a procedure pointer, we can assume the worst. */
- if (sym->attr.array_outer_dependency
- || sym->attr.proc_pointer)
+ if ((sym->attr.array_outer_dependency || sym->attr.proc_pointer)
+ && gfc_current_ns->proc_name)
gfc_current_ns->proc_name->attr.array_outer_dependency = 1;
}
+2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/85543
+ * gfortran.dg/pr85543.f90: New test.
+
2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85780
--- /dev/null
+! { dg-do compile }
+! PR fortran/85543
+program p
+ procedure(), pointer :: z
+contains
+ real(z()) function f() ! { dg-error "in initialization expression at" }
+ end
+end