[Bug fortran/93600] [10 Regression] ICE in gfc_match_assignment, at fortran/match.c:1366/1340
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 6 00:20:00 GMT 2020
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;
More information about the Gcc-bugs
mailing list