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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> 
---
Messages interchanged (v5/v6) with a user defined type :

$ cat z3.f90
program p
   type t
   end type
   type(t), pointer :: z(:)
   z(1:2) => null()
end

$ gfortran-6 -c z3.f90
internal compiler error: Segmentation fault

$ gfortran-5.3.1 -c z3.f90
internal compiler error: in gfc_add_block_to_block, at fortran/trans.c:1630



Another error message with "class" instead of "type" :

$ cat z4.f90
program p
   type t
   end type
   class(t), pointer :: z(:)
   z(1:2) => null()
end

$ gfortran-6 -c z4.f90
internal compiler error: in gfc_conv_descriptor_data_get, at
fortran/trans-array.c:144

$ gfortran-5.3.1 -c z4.f90
internal compiler error: Segmentation fault

Reply via email to