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

13 lines
209 B
Fortran

! { dg-do compile }
!
! PR fortran/46413
!
type t
integer :: ii =5
end type t
class(t), allocatable :: x
allocate (t :: x)
print *,x ! { dg-error "Data transfer element at .1. cannot be polymorphic" }
end