gcc/testsuite/gfortran.dg/pr93337.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR fortran/93337 - ICE in gfc_dt_upper_string, at fortran/module.c:441 |
| 3 | |
| 4 | program p |
| 5 | type t |
| 6 | character(:), allocatable :: a |
| 7 | end type t |
| 8 | class(t) :: x ! { dg-error "must be dummy, allocatable or pointer" } |
| 9 | x = x ! { dg-error "must not be polymorphic in intrinsic assignment" } |
| 10 | end |