[Bug fortran/77380] ICE in gfc_check_dependency, at fortran/dependency.c:1255

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 25 20:32:00 GMT 2016


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-08-25
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1

--- Comment #2 from kargl at gcc dot gnu.org ---
Index: gcc/fortran/dependency.c
===================================================================
--- gcc/fortran/dependency.c    (revision 239762)
+++ gcc/fortran/dependency.c    (working copy)
@@ -1252,6 +1252,12 @@ gfc_check_dependency (gfc_expr *expr1, g
   gfc_constructor *c;
   int n;

+  /* -fcoarray=lib can end up here with expr1->expr_type set to EXPR_FUNCTION
+     and a reference to _F.caf_get, so skip the assert.  */
+  if (expr1->expr_type == EXPR_FUNCTION
+      && strcmp (expr1->value.function.name, "_F.caf_get") == 0)
+    return 0;
+
   gcc_assert (expr1->expr_type == EXPR_VARIABLE);

   switch (expr2->expr_type)


More information about the Gcc-bugs mailing list