Commit b93a9a15 by Paul Thomas

re PR fortran/79599 (typo in diagnostic gfc_error ("DTIO dummy argument at %L be a scalar")

2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79599
	* interface.c (check_dtio_arg_TKR_intent): Supply 'must'
	missing from error message.

2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79523
	* interface.c (gfc_find_typebound_dtio_proc): Guard test for
	flavor attribute by checking that symbol is resolved.

From-SVN: r245603
parent 705d3b77
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/79599
* interface.c (check_dtio_arg_TKR_intent): Supply 'must'
missing from error message.
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/79523
* interface.c (gfc_find_typebound_dtio_proc): Guard test for
flavor attribute by checking that symbol is resolved.
2017-02-16 Paul Thomas <pault@gcc.gnu.org> 2017-02-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/79382 PR fortran/79382
......
...@@ -4615,7 +4615,7 @@ check_dtio_arg_TKR_intent (gfc_symbol *fsym, bool typebound, bt type, ...@@ -4615,7 +4615,7 @@ check_dtio_arg_TKR_intent (gfc_symbol *fsym, bool typebound, bt type,
&& rank == 0 && rank == 0
&& (((type == BT_CLASS) && CLASS_DATA (fsym)->attr.dimension) && (((type == BT_CLASS) && CLASS_DATA (fsym)->attr.dimension)
|| ((type != BT_CLASS) && fsym->attr.dimension))) || ((type != BT_CLASS) && fsym->attr.dimension)))
gfc_error ("DTIO dummy argument at %L be a scalar", gfc_error ("DTIO dummy argument at %L must be a scalar",
&fsym->declared_at); &fsym->declared_at);
else if (rank == 1 else if (rank == 1
&& (fsym->as == NULL || fsym->as->type != AS_ASSUMED_SHAPE)) && (fsym->as == NULL || fsym->as->type != AS_ASSUMED_SHAPE))
...@@ -4829,7 +4829,7 @@ gfc_find_typebound_dtio_proc (gfc_symbol *derived, bool write, bool formatted) ...@@ -4829,7 +4829,7 @@ gfc_find_typebound_dtio_proc (gfc_symbol *derived, bool write, bool formatted)
gfc_symtree *tb_io_st = NULL; gfc_symtree *tb_io_st = NULL;
bool t = false; bool t = false;
if (!derived || derived->attr.flavor != FL_DERIVED) if (!derived || !derived->resolved || derived->attr.flavor != FL_DERIVED)
return NULL; return NULL;
/* Try to find a typebound DTIO binding. */ /* Try to find a typebound DTIO binding. */
......
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