+2018-12-08 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/92764
+ * interface.c (gfc_procedure_use): Check for existence of derived
+ component before using (twice).
+
2019-12-08 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/92755
/* F2008, C1303 and C1304. */
if (a->expr
&& (a->expr->ts.type == BT_DERIVED || a->expr->ts.type == BT_CLASS)
+ && a->expr->ts.u.derived
&& ((a->expr->ts.u.derived->from_intmod == INTMOD_ISO_FORTRAN_ENV
&& a->expr->ts.u.derived->intmod_sym_id == ISOFORTRAN_LOCK_TYPE)
|| gfc_expr_attr (a->expr).lock_comp))
if (a->expr
&& (a->expr->ts.type == BT_DERIVED || a->expr->ts.type == BT_CLASS)
+ && a->expr->ts.u.derived
&& ((a->expr->ts.u.derived->from_intmod == INTMOD_ISO_FORTRAN_ENV
&& a->expr->ts.u.derived->intmod_sym_id
== ISOFORTRAN_EVENT_TYPE)
--- /dev/null
+! { dg-do compile }
+! PR 92964 - this used to ICE.
+! Original test case by Arseny Solokha
+type(e6) function dn() ! { dg-error "The type for function" }
+ call sub(dn)
+end function dn