Retro68/gcc/gcc/testsuite/gfortran.dg/der_io_4.f90
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

10 lines
314 B
Fortran

! { dg-do compile }
! PR41859 ICE on invalid expression involving DT with pointer components in I/O.
! The parens around p below are significant.
TYPE :: ptype
character, pointer, dimension(:) :: x => null()
END TYPE
TYPE(ptype) :: p
print *, ((((p)))) ! { dg-error "Data transfer element" }
end