Commit e5d7f6f7 by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/20892 (dummy procedure can't be generic)

	PR fortran/20892
	* interface.c (gfc_match_interface): Don't allow dummy procedures
	to have a generic interface.

From-SVN: r115201
parent 09b86855
2006-07-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/20892
* interface.c (gfc_match_interface): Don't allow dummy procedures
to have a generic interface.
2006-07-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28174
......
......@@ -217,6 +217,13 @@ gfc_match_interface (void)
&& gfc_add_generic (&sym->attr, sym->name, NULL) == FAILURE)
return MATCH_ERROR;
if (sym->attr.dummy)
{
gfc_error ("Dummy procedure '%s' at %C cannot have a "
"generic interface", sym->name);
return MATCH_ERROR;
}
current_interface.sym = gfc_new_block = sym;
break;
......
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