This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50627] New: [OOP] Error recovery: ICE in gfc_free_namespace after properly diagnosing bogus SELECT TYPE in MODULE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]