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
This commit is contained in:
Francois-Xavier Coudert 2006-07-05 17:22:26 +02:00 committed by François-Xavier Coudert
parent 09b868558b
commit e5d7f6f735
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;