http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50627
Bug #: 50627 Summary: [OOP] Error recovery: ICE in gfc_free_namespace after properly diagnosing bogus SELECT TYPE in MODULE Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org The following bogus code is properly diagnosed but then once gets an ICE: .... (some more error messages) ... Error: Expecting END MODULE statement at (1) f951: internal compiler error: in gfc_free_namespace, at fortran/symbol.c:3259 The result is the same for 4.6 and 4.7; 4.5 seems to enter an endless loop - and 4.4 simply prints an error as it does not know CLASS or SELECT TYPE. module m type t end type t class(t), allocatable :: xx select type(xx) ! type is(t) ! stop end select end