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

            Bug ID: 95584
           Summary: ICE in generic_correspondence, at
                    fortran/interface.c:1260
           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: ---

Affects versions down to at least r5, with a doubled interface :


$ cat z1.f90
program p
   interface s
      subroutine g(x, *)
      end
      subroutine h(y, *)
      end
   end interface
end


$ gfortran-11-20200607 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbc593f crash_signal
        ../../gcc/toplev.c:328
0x662887 generic_correspondence
        ../../gcc/fortran/interface.c:1260
0x66379b gfc_compare_interfaces(gfc_symbol*, gfc_symbol*, char const*, int,
int, char*, int, char const*, char const*, bool*)
        ../../gcc/fortran/interface.c:1776
0x663f6c check_interface1
        ../../gcc/fortran/interface.c:1954
0x664163 check_sym_interfaces
        ../../gcc/fortran/interface.c:2012
0x6e9fc2 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4150
0x6641e0 gfc_check_interfaces(gfc_namespace*)
        ../../gcc/fortran/interface.c:2104
0x6cf3ad resolve_types
        ../../gcc/fortran/resolve.c:17191
0x6ca98c gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17290
0x6b2adc resolve_all_program_units
        ../../gcc/fortran/parse.c:6245
0x6b2adc gfc_parse_file()
        ../../gcc/fortran/parse.c:6492
0x6feb3f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

Reply via email to