[Bug fortran/83976] ICE in gfc_add_component_ref, at fortran/class.c:211
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Jan 22 18:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83976
--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---
This variant works as expected :
$ cat z2.f90
program p
type t
integer :: a
end type
class(t), allocatable :: x
type(t) :: z = t(3)
x = z
z = x
print *, z
end
$ gfortran-8-20180121 z2.f90 -static-libgfortran
$ a.out
3
$
More information about the Gcc-bugs
mailing list