2016-09-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/48298
* interface.c (gfc_find_specific_dtio_proc) : Return NULL if
the derived type is broken, as indicated by a flavor other than
FL_DERIVED.
From-SVN: r240493
+2016-09-26 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/48298
+ * interface.c (gfc_find_specific_dtio_proc) : Return NULL if
+ the derived type is broken, as indicated by a flavor other than
+ FL_DERIVED.
+
2016-09-26 Marek Polacek <polacek@redhat.com>
PR c/7652
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
- PR fortran/77429
+ PR fortran/77429
* dependency.c (gfc_check_dependency): Convert gcc_assert() to
a conditional and possible call to gfc_internal_error().
gfc_typebound_proc *tb_io_proc, *specific_proc;
bool t = false;
+ if (!derived || derived->attr.flavor != FL_DERIVED)
+ return NULL;
+
/* Try to find a typebound DTIO binding. */
if (formatted == true)
{