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

            Bug ID: 95689
           Summary: ICE in check_sym_interfaces, at
                    fortran/interface.c:2015
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Happens between name length 37 (ok) and 38 (ICE) :


$ cat z1_37.f90
module m234567890123456789012345678901234567
   type t234567890123456789012345678901234567
   end type
   interface
      module subroutine s234567890123456789012345678901234567 &
        (x234567890123456789012345678901234567)
      end
   end interface
end
submodule(m234567890123456789012345678901234567) &
   t234567890123456789012345678901234567
end


$ cat z1_38.f90
module m2345678901234567890123456789012345678
   type t2345678901234567890123456789012345678
   end type
   interface
      module subroutine s2345678901234567890123456789012345678 &
        (x2345678901234567890123456789012345678)
      end
   end interface
end
submodule(m2345678901234567890123456789012345678) &
   t2345678901234567890123456789012345678
end


$ cat z1_42.f90
module m23456789012345678901234567890123456789012
   type t23456789012345678901234567890123456789012
   end type
   interface
      module subroutine s23456789012345678901234567890123456789012 &
        (x23456789012345678901234567890123456789012)
      end
   end interface
end
submodule(m23456789012345678901234567890123456789012) &
   t23456789012345678901234567890123456789012
end


$ cat z1_63.f90
module m23456789012345678901234567890123456789012345678901234567890123
   type t23456789012345678901234567890123456789012345678901234567890123
   end type
   interface
      module subroutine
s23456789012345678901234567890123456789012345678901234567890123 &
        (x23456789012345678901234567890123456789012345678901234567890123)
      end
   end interface
end
submodule(m23456789012345678901234567890123456789012345678901234567890123) &
   t23456789012345678901234567890123456789012345678901234567890123
end


$ gfortran-11-20200614 -c z1_37.f90
$
$ gfortran-11-20200614 -c z1_38.f90
f951: internal compiler error: Segmentation fault
0xd61fdf crash_signal
        ../../gcc/toplev.c:328
0x72a1d6 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4163
0x6a40e0 gfc_check_interfaces(gfc_namespace*)
        ../../gcc/fortran/interface.c:2104
0x70f5bd resolve_types
        ../../gcc/fortran/resolve.c:17191
0x70ab9c gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17290
0x6f2af2 gfc_parse_file()
        ../../gcc/fortran/parse.c:6447
0x73f8cf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212


$ gfortran-11-20200614 -c z1_63.f90
f951: internal compiler error: Segmentation fault
0xd61fdf crash_signal
        ../../gcc/toplev.c:328
0x6a4040 check_sym_interfaces
        ../../gcc/fortran/interface.c:2015

Reply via email to