+2017-02-28 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/79739
+ * resolve.c (resolve_fl_procedure): Deal with the case where
+ 'submodule_name' is NULL so that gfc_error does not ICE.
+ Reformat the error message to make it more consistent.
+
2017-02-28 Jakub Jelinek <jakub@redhat.com>
* parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
if (!gfc_check_result_characteristics (sym, iface, errmsg, 200))
{
gfc_error ("%s between the MODULE PROCEDURE declaration "
- "in module %s and the declaration at %L in "
- "SUBMODULE %s", errmsg, module_name,
- &sym->declared_at, submodule_name);
+ "in MODULE '%s' and the declaration at %L in "
+ "(SUB)MODULE '%s'",
+ errmsg, module_name, &sym->declared_at,
+ submodule_name ? submodule_name : module_name);
return false;
}