This is the mail archive of the gcc-bugs@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]

[Bug fortran/58652] ICE with move_alloc and unlimited polymorphic


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

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Patch for the issue in comment 1:

--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -1993,2 +1993,3 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual,
-      if (!gfc_compare_derived_types (CLASS_DATA (actual)->ts.u.derived,
-                      CLASS_DATA (formal)->ts.u.derived))
+      if (!UNLIMITED_POLY (formal)
+      && !gfc_compare_derived_types (CLASS_DATA (actual)->ts.u.derived,
+                     CLASS_DATA (formal)->ts.u.derived))


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