[Bug fortran/82971] New: ICE in gfc_find_derived_vtab, at fortran/class.c:2214 ...

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Mon Nov 13 17:35:00 GMT 2017


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

            Bug ID: 82971
           Summary: ICE in gfc_find_derived_vtab, at fortran/class.c:2214
                    ...
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Another issue :


$ cat z1.f90
module m
   type t
      integer :: n
   end type
   class(t), target :: z
   type t2
      class(t), pointer :: x => z
   end type
end


$ gfortran-8-20171112 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb61c7f crash_signal
        ../../gcc/toplev.c:325
0x671d71 gfc_find_derived_vtab(gfc_symbol*)
        ../../gcc/fortran/class.c:2214
0x6760d3 gfc_find_vtab(gfc_typespec*)
        ../../gcc/fortran/class.c:2837
0x699092 gfc_check_pointer_assign(gfc_expr*, gfc_expr*)
        ../../gcc/fortran/expr.c:3738
0x699dca gfc_check_assign_symbol(gfc_symbol*, gfc_component*, gfc_expr*)
        ../../gcc/fortran/expr.c:3947
0x706aaa resolve_component
        ../../gcc/fortran/resolve.c:13870
0x7072a2 resolve_fl_derived0
        ../../gcc/fortran/resolve.c:13982
0x70750b resolve_fl_derived
        ../../gcc/fortran/resolve.c:14077
0x7020cf resolve_symbol
        ../../gcc/fortran/resolve.c:14436
0x71cb8b do_traverse_symtree
        ../../gcc/fortran/symbol.c:4157
0x70548a resolve_types
        ../../gcc/fortran/resolve.c:16328
0x700dbc gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16442
0x6eac74 gfc_parse_file()
        ../../gcc/fortran/parse.c:6232
0x72f13f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204


More information about the Gcc-bugs mailing list