http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56500



janus at gcc dot gnu.org changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED



--- Comment #3 from janus at gcc dot gnu.org 2013-03-17 13:12:02 UTC ---

... and this hunk cures the error on comment 1:



Index: gcc/fortran/resolve.c

===================================================================

--- gcc/fortran/resolve.c    (revision 196748)

+++ gcc/fortran/resolve.c    (working copy)

@@ -318,7 +318,13 @@ resolve_formal_arglist (gfc_symbol *proc)

     {

       if (sym->ts.type == BT_UNKNOWN && !proc->attr.intrinsic

           && (!sym->attr.function || sym->result == sym))

-        gfc_set_default_type (sym, 1, sym->ns);

+        {

+          gfc_set_default_type (sym, 1, sym->ns);

+          if (sym->ts.type == BT_CLASS

+          && gfc_build_class_symbol (&sym->ts, &sym->attr,

+                         &sym->as, false) == FAILURE)

+        continue;

+        }

     }



       as = sym->ts.type == BT_CLASS && sym->attr.class_ok

Reply via email to