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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-02-06
                 CC|                            |kargl at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from kargl at gcc dot gnu.org ---
The patch against svn r280157 removes the ICE, and allows for the
dreaded 'Unclassiable statement at (1)' error.

Index: gcc/fortran/match.c
===================================================================
--- gcc/fortran/match.c (revision 280157)
+++ gcc/fortran/match.c (working copy)
@@ -1363,6 +1373,13 @@ gfc_match_assignment (void)
       return m;
     }

+  if (!lvalue->symtree)
+    {
+      gfc_free_expr (lvalue);
+      gfc_free_expr (rvalue);
+      return MATCH_ERROR;
+    }
+
   gfc_set_sym_referenced (lvalue->symtree->n.sym);

   new_st.op = EXEC_ASSIGN;

Reply via email to