[Bug fortran/60853] [OOP] Failure to disambiguate generic with unlimited polymorphic

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 15 13:04:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60853

--- Comment #3 from janus at gcc dot gnu.org ---
This patch makes gfortran accept the code:

Index: gcc/fortran/interface.c
===================================================================
--- gcc/fortran/interface.c     (Revision 242412)
+++ gcc/fortran/interface.c     (Arbeitskopie)
@@ -1741,9 +1741,6 @@ gfc_compare_interfaces (gfc_symbol *s1, gfc_symbol
            return 0;
          }

-       if (UNLIMITED_POLY (f1->sym))
-         goto next;
-
        if (strict_flag)
          {
            /* Check all characteristics.  */


Regtesting now ...


More information about the Gcc-bugs mailing list