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

            Bug ID: 91648
           Summary: [9/10 Regression] ICE in
                    generate_finalization_wrapper, at fortran/class.c:2009
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Behavior changed between 20180909 and 20180916 :


$ cat z1.f90
module m
   type t
   contains
      final :: s
   end type
contains
   subroutine s(x)
      type(t) :: x
      class(*), allocatable :: y
      y = x
   end
end


$ gfortran-9-20180909 -c z1.f90
$
$ gfortran-10-20190901 -c z1.f90
f951: internal compiler error: in generate_finalization_wrapper, at
fortran/class.c:2009
0x5fcc8f generate_finalization_wrapper
        ../../gcc/fortran/class.c:2009
0x5fcc8f gfc_find_derived_vtab(gfc_symbol*)
        ../../gcc/fortran/class.c:2484
0x5fe428 gfc_find_vtab(gfc_typespec*)
        ../../gcc/fortran/class.c:2862
0x64d3a2 gfc_match_assignment()
        ../../gcc/fortran/match.c:1375
0x66f8d0 match_word
        ../../gcc/fortran/parse.c:65
0x66f8d0 decode_statement
        ../../gcc/fortran/parse.c:361
0x6713ca next_free
        ../../gcc/fortran/parse.c:1251
0x6713ca next_statement
        ../../gcc/fortran/parse.c:1483
0x6729eb parse_spec
        ../../gcc/fortran/parse.c:3881
0x6757dc parse_progunit
        ../../gcc/fortran/parse.c:5799
0x675bc1 parse_contained
        ../../gcc/fortran/parse.c:5700
0x6769e7 parse_module
        ../../gcc/fortran/parse.c:6072
0x676d17 gfc_parse_file()
        ../../gcc/fortran/parse.c:6375
0x6c14bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to