blob: cfa1bca66873f3245014324d9466ab98697ec737 [file] [log] [blame]
! { 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