This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50627] New: [OOP] Error recovery: ICE in gfc_free_namespace after properly diagnosing bogus SELECT TYPE in MODULE
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 06 Oct 2011 09:58:57 +0000
- Subject: [Bug fortran/50627] New: [OOP] Error recovery: ICE in gfc_free_namespace after properly diagnosing bogus SELECT TYPE in MODULE
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: burnus@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