[Bug fortran/107923] ICE in lookup_function_fuzzy_find_candidates / check_interface0

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Nov 29 17:57:26 GMT 2022


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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

A better elaborated test case :

$ cat zz1.f90
module m
   interface s
      module procedure a, b, a
   end interface
contains
   subroutine a(x)
      integer :: x
   end
   subroutine b(x)
      real :: x
   end
end


$ gfortran-13-20221127 -c zz1.f90    # if necessary with -g or -O2
zz1.f90:3:30:

    3 |       module procedure a, b, a
      |                              1
Error: Entity 'a' at (1) is already present in the interface
f951: internal compiler error: Segmentation fault
0xf36d0f crash_signal
        ../../gcc/toplev.cc:314
0x80ad07 check_interface0
        ../../gcc/fortran/interface.cc:1885
0x80e913 check_sym_interfaces
        ../../gcc/fortran/interface.cc:2021
0x89ee32 do_traverse_symtree
        ../../gcc/fortran/symbol.cc:4180
0x80ea20 gfc_check_interfaces(gfc_namespace*)
        ../../gcc/fortran/interface.cc:2132
0x88318d resolve_types
        ../../gcc/fortran/resolve.cc:17562
0x87e4bc gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.cc:17661
0x866092 gfc_parse_file()
        ../../gcc/fortran/parse.cc:6837
0x8b4d3f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229


More information about the Gcc-bugs mailing list