Commit 91797170 by Dominique d'Humieres

re PR fortran/79842 (i18n: subword translation in "Can't use the same %smodule")

2019-04-13  Dominique d'Humieres  <dominiq@gcc.gnu.org>

	PR fortran/79842
	* module.c (gfc_use_module): use complete sentences.

From-SVN: r270338
parent 4b4f5ccd
2019-04-13 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/79842
* module.c (gfc_use_module): use complete sentences.
2019-04-11 Thomas Koenig <tkoenig@gcc.gnu.org>
PR translation/89939
......
......@@ -7144,8 +7144,12 @@ gfc_use_module (gfc_use_list *module)
for (p = gfc_state_stack; p; p = p->previous)
if ((p->state == COMP_MODULE || p->state == COMP_SUBMODULE)
&& strcmp (p->sym->name, module_name) == 0)
gfc_fatal_error ("Cannot USE the same %smodule we're building",
p->state == COMP_SUBMODULE ? "sub" : "");
{
if (p->state == COMP_SUBMODULE)
gfc_fatal_error ("Cannot USE a submodule that is currently built");
else
gfc_fatal_error ("Cannot USE a module that is currently built");
}
init_pi_tree ();
init_true_name_tree ();
......
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