This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]