[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2009-05-26 19:30 --- Fixed on the trunk (4.5). Thanks Xavier for reporting it! -- burnus at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-26 19:23 --- Subject: Bug 40246 Author: burnus Date: Tue May 26 19:23:45 2009 New Revision: 147879 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147879 Log: 2009-05-26 Tobias Burnus PR fortran/40246 *

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2009-05-26 15:11 --- (In reply to comment #3) > > > The following patch to gfc_match_nullify fixes it; however, I think one > > > should additionally add > > > gfc_free_expr (new_st.expr1); > > > gfc_free_expr (new_st.expr2); > > > to

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-26 14:45 --- > > The following patch to gfc_match_nullify fixes it; however, I think one > > should additionally add > > gfc_free_expr (new_st.expr1); > > gfc_free_expr (new_st.expr2); > > to prevent a memory leak. > > AFAIC

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2009-05-26 14:18 --- (In reply to comment #1) > 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

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- 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 preven