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

            Bug ID: 95879
           Summary: [10/11 Regression] ICE in gfc_get_derived_type, at
                    fortran/trans-types.c:2729
           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: ---

Changed between 20190630 and 20190728 :


$ cat z1.f90
module m
contains
   integer function f(x) bind(c)
      use iso_c_binding
   contains
      subroutine s
         c_funloc(f) = x
      end
   end
end


$ cat z2.f90
module m
contains
   integer function f(x)
      use iso_c_binding
   contains
      subroutine s
         c_funloc(f) = x
      end
   end
end


$ gfortran-10-20190630 -c z1.f90
$
$ gfortran-11-20200621 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbce57f crash_signal
        ../../gcc/toplev.c:328
0x6d07a5 gfc_resolve_formal_arglist(gfc_symbol*)
        ../../gcc/fortran/resolve.c:313
0x6ebde2 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4162
0x6d0fc3 resolve_formal_arglists
        ../../gcc/fortran/resolve.c:563
0x6d0fc3 resolve_contained_functions
        ../../gcc/fortran/resolve.c:1129
0x6d0fc3 resolve_types
        ../../gcc/fortran/resolve.c:17164
0x6d11a0 resolve_types
        ../../gcc/fortran/resolve.c:17186
0x6d11a0 resolve_types
        ../../gcc/fortran/resolve.c:17186
0x6cc7ac gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17290
0x6b46f2 gfc_parse_file()
        ../../gcc/fortran/parse.c:6448
0x70098f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

Reply via email to