[Bug fortran/83976] ICE in gfc_add_component_ref, at fortran/class.c:211

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Jan 23 17:42:00 GMT 2018


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

--- Comment #3 from G. Steinmetz <gscfq@t-online.de> ---
A class/type issue - changing x from class to type :


$ cat z3.f90
program p
   type t
      integer :: a
   end type
   type(t), allocatable :: x
   type(t) :: z = t(3)
   x = z
   z = (x)
   print *, z
end


$ gfortran-8-20180121 -g -O0 -Wall -fcheck=all -static-libgfortran z3.f90
$ a.out
           3
$


More information about the Gcc-bugs mailing list