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

G. Steinmetz <gs...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gs...@t-online.de

--- Comment #2 from G. Steinmetz <gs...@t-online.de> ---
Some reductions :


$ cat z1.f90
program p
   type, abstract :: t
   end type
   class(t), allocatable :: x, z(:)
   allocate (z(1), source=[x])
end


$ cat z2.f90
program p
   type t
   end type
   class(t), allocatable :: x, z(:)
   allocate (z(1), source=[x])
end


$ gfortran-9-20181021 -c z2.f90
z2.f90:5:0:

    5 |    allocate (z(1), source=[x])
      |
internal compiler error: Segmentation fault
0xb1c86f crash_signal
        ../../gcc/toplev.c:325
0x5fc806 gfc_add_component_ref(gfc_expr*, char const*)
        ../../gcc/fortran/class.c:211
0x72dbb7 gfc_trans_allocate(gfc_code*)
        ../../gcc/fortran/trans-stmt.c:6048
0x6bdb27 trans_code
        ../../gcc/fortran/trans.c:1990
0x6e51c4 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6505
0x673426 translate_all_program_units
        ../../gcc/fortran/parse.c:6125
0x673426 gfc_parse_file()
        ../../gcc/fortran/parse.c:6328
0x6ba3ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to