This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran,commited] Dummy procedures not allowed to have generic interface
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: gfortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Jul 2006 17:23:45 +0200
- Subject: [gfortran,commited] Dummy procedures not allowed to have generic interface
I commited the following patch under the "obvious" rule, after
bootstrapping and regtesting on i686-linux:
Index: interface.c
===================================================================
--- interface.c (revision 115174)
+++ interface.c (working copy)
@@ -217,6 +217,13 @@
&& 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;
Commit message: http://gcc.gnu.org/ml/gcc-cvs/2006-07/msg00093.html