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/66245] New: ICE on select type with empty type spec


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66245

            Bug ID: 66245
           Summary: ICE on select type with empty type spec
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

This test case with an empty type selector (type is) ...
   program p
      type t; end type
      class(t), allocatable :: x
      call s
   contains
      subroutine s
         select type ( x )
         type is ( )
         end select
      end
   end

and this variation (class is) ...
   program p
      type t; end type
      class(t), allocatable :: x
      call s
   contains
      subroutine s
         select type ( x )
         class is ( )
         end select
      end
   end

yields (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit)
f951: internal compiler error: gfc_get_default_type(): Bad symbol
'__tmp_UNKNOWN_0'


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