https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91586
Bug ID: 91586 Summary: [9/10 Regression] ICE in gfc_find_derived_vtab, at fortran/class.c:2245 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: --- Changed between 20180909 and 20180916 : $ cat z1.f90 program p type t class(*), allocatable :: a end type class(t) :: x, y y = x end $ gfortran-9-20180909 -c z1.f90 z1.f90:5:16: 5 | class(t) :: x, y | 1 Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer z1.f90:5:19: 5 | class(t) :: x, y | 1 Error: CLASS variable 'y' at (1) must be dummy, allocatable or pointer z1.f90:6:3: 6 | y = x | 1 Error: Nonallocatable variable must not be polymorphic in intrinsic assignment at (1) - check that there is a matching specific subroutine for '=' operator $ gfortran-10-20190825 -c z1.f90 f951: internal compiler error: Segmentation fault 0xb3acef crash_signal ../../gcc/toplev.c:326 0x5f9ca3 gfc_find_derived_vtab(gfc_symbol*) ../../gcc/fortran/class.c:2245 0x5fdbe5 gfc_find_vtab(gfc_typespec*) ../../gcc/fortran/class.c:2865 0x64c7a2 gfc_match_assignment() ../../gcc/fortran/match.c:1375 0x66e500 match_word ../../gcc/fortran/parse.c:65 0x66e500 decode_statement ../../gcc/fortran/parse.c:361 0x67006a next_free ../../gcc/fortran/parse.c:1241 0x67006a next_statement ../../gcc/fortran/parse.c:1473 0x67167b parse_spec ../../gcc/fortran/parse.c:3865 0x67411c parse_progunit ../../gcc/fortran/parse.c:5680 0x675799 gfc_parse_file() ../../gcc/fortran/parse.c:6220 0x6bf60f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204