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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org ---
Patch fixes the ICE observed with z1.f90, and ironically, allows z2.f90 to be
compiled without error.

Patch is against svn r280157

Index: gcc/fortran/expr.c
===================================================================
--- gcc/fortran/expr.c  (revision 280157)
+++ gcc/fortran/expr.c  (working copy)
@@ -1153,6 +1153,9 @@ simplify_intrinsic_op (gfc_expr *p, int type)
   op2 = p->value.op.op2;
   op  = p->value.op.op;

+  if (!op1 && !op2)
+    return false;
+
   if (!gfc_simplify_expr (op1, type))
     return false;
   if (!gfc_simplify_expr (op2, type))

Reply via email to