Commit 9beb81ed by Paul Thomas

re PR fortran/48298 ([F03] User-Defined Derived-Type IO (DTIO))

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
parent 32824208
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> 2016-09-26 Marek Polacek <polacek@redhat.com>
PR c/7652 PR c/7652
...@@ -12,7 +19,7 @@ ...@@ -12,7 +19,7 @@
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org> 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 * dependency.c (gfc_check_dependency): Convert gcc_assert() to
a conditional and possible call to gfc_internal_error(). a conditional and possible call to gfc_internal_error().
......
...@@ -4793,6 +4793,9 @@ gfc_find_specific_dtio_proc (gfc_symbol *derived, bool write, bool formatted) ...@@ -4793,6 +4793,9 @@ gfc_find_specific_dtio_proc (gfc_symbol *derived, bool write, bool formatted)
gfc_typebound_proc *tb_io_proc, *specific_proc; gfc_typebound_proc *tb_io_proc, *specific_proc;
bool t = false; bool t = false;
if (!derived || derived->attr.flavor != FL_DERIVED)
return NULL;
/* Try to find a typebound DTIO binding. */ /* Try to find a typebound DTIO binding. */
if (formatted == true) if (formatted == true)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment