[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 26 08:32:00 GMT 2009
------- Comment #1 from burnus at gcc dot gnu dot org 2009-05-26 08:32 -------
The following patch to gfc_match_nullify fixes it; however, I think one should
additionally add
gfc_free_expr (new_st.expr1);
new_st.expr1 = NULL;
gfc_free_expr (new_st.expr2);
new_st.expr2 = NULL;
to prevent a memory leak.
--- match.c (revision 147861)
+++ match.c (working copy)
@@ -2418,6 +2470,7 @@ syntax:
cleanup:
gfc_free_statements (new_st.next);
+ new_st.next = NULL;
return MATCH_ERROR;
}
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-05-26 08:32:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40246
More information about the Gcc-bugs
mailing list