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

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


Related non-coarray version :


$ cat z3.f90
program p
   type t
   end type
   class(t) :: x
   associate (y => x)
   end associate
end


$ gfortran-9-20181202 -c z3.f90
z3.f90:4:16:

    4 |    class(t) :: x
      |                1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer
f951: internal compiler error: Segmentation fault
0xc8f33f crash_signal
        ../../gcc/toplev.c:326
0x6ab3c3 resolve_assoc_var
        ../../gcc/fortran/resolve.c:8718
0x6afb71 resolve_symbol
        ../../gcc/fortran/resolve.c:14738
0x6d37e2 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4151
0x6aa5a4 resolve_types
        ../../gcc/fortran/resolve.c:16623
0x6af50c gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16737
0x6accab gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16724
0x6accab resolve_block_construct
        ../../gcc/fortran/resolve.c:10163
0x6accab gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11493
0x6af44f resolve_codes
        ../../gcc/fortran/resolve.c:16704
0x6af51e gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16739
0x69d2a7 resolve_all_program_units
        ../../gcc/fortran/parse.c:6067
0x69d2a7 gfc_parse_file()
        ../../gcc/fortran/parse.c:6317
0x6e6a9f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to