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:
parent
09b868558b
commit
e5d7f6f735
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user