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

--- Comment #5 from G. Steinmetz <gs...@t-online.de> ---

A related test case, also changed between 20180909 and 20180916 :


$ cat z2.f90
program p
   type t
      integer :: n
   end type
   class(t) :: a, x
   x = a
end


$ gfortran-9-20180909 -c z2.f90
z2.f90:5:16:

5 |    class(t) :: a, x
  |                1
Error: CLASS variable 'a' at (1) must be dummy, allocatable or pointer
z2.f90:5:19:

5 |    class(t) :: a, x
  |                   1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer
z2.f90:6:3:

6 |    x = a
  |   1
Error: Nonallocatable variable must not be polymorphic in intrinsic assignment
at (1) - check that there is a matching specific subroutine for '=' operator


$ gfortran-9-20181209 -c z2.f90
f951: internal compiler error: Segmentation fault
0xb2f31f crash_signal
        ../../gcc/toplev.c:326
0x5fb831 gfc_find_derived_vtab(gfc_symbol*)
        ../../gcc/fortran/class.c:2220
0x5ff91b gfc_find_vtab(gfc_typespec*)
        ../../gcc/fortran/class.c:2847
0x64d572 gfc_match_assignment()
        ../../gcc/fortran/match.c:1378
0x66f120 match_word
        ../../gcc/fortran/parse.c:65
0x66f120 decode_statement
        ../../gcc/fortran/parse.c:361
0x670c7a next_free
        ../../gcc/fortran/parse.c:1235
0x670c7a next_statement
        ../../gcc/fortran/parse.c:1467
0x67228b parse_spec
        ../../gcc/fortran/parse.c:3859
0x674d2c parse_progunit
        ../../gcc/fortran/parse.c:5674
0x6763a9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6214
0x6bf27f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to