[Bug fortran/95504] ICE in transfer_array_component, at fortran/trans-io.c:2167

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Jun 3 15:48:01 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

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

With a non-parameterized type instead :


$ cat zz1.f90
program p
   type t
      integer :: n
      integer, pointer :: a(:)
   end type
   type(t) :: z
   print *, z
end


$ gfortran-11-20200531 -c zz1.f90
zz1.f90:7:13:

    7 |    print *, z
      |             1
Error: Data transfer element at (1) cannot have POINTER components unless it is
processed by a defined input/output procedure


More information about the Gcc-bugs mailing list