http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48692
Summary: [4.7 Regression] ICE with gfortran.dg/module_write_1.f90 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: bur...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org Blocks: 48588 My recent patch for PR 48588 (submitted patch: http://gcc.gnu.org/ml/fortran/2011-04/msg00206.html ), Rev. 172718, causes a regression: For gfortran.dg/module_write_1.f90: f951: internal compiler error: in gfc_enforce_clean_symbol_state, at fortran/symbol.c:3426 #0 gfc_enforce_clean_symbol_state () at gcc/fortran/symbol.c:3426 #1 0x0000000000526ee1 in next_statement () at gcc/fortran/parse.c:889 #2 0x000000000052a88e in gfc_parse_file () at gcc/fortran/parse.c:4329 The problem is that gfc_commit_symbol/-s or gfc_undo_symbols has not been called.