gcc/testsuite/gfortran.dg/class_71.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR fortran/91586 |
| 4 | ! |
| 5 | ! Contributed by G. Steinmetz |
| 6 | ! |
| 7 | program p |
| 8 | type t |
| 9 | class(*), allocatable :: a |
| 10 | end type |
| 11 | class(t) :: x, y ! { dg-error "must be dummy, allocatable or pointer" } |
| 12 | y = x ! { dg-error "Nonallocatable variable must not be polymorphic in intrinsic assignment" } |
| 13 | end |