gcc/testsuite/gfortran.dg/unlimited_polymorphic_27.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR 78800: [OOP] ICE in compare_parameter, at fortran/interface.c:2246 |
| 4 | ! |
| 5 | ! Contributed by Gerhard Steinmetz <[email protected]> |
| 6 | |
| 7 | program p |
| 8 | type t |
| 9 | end type |
| 10 | class(*) :: z ! { dg-error "must be dummy, allocatable or pointer" } |
| 11 | call s(z) |
| 12 | contains |
| 13 | subroutine s(x) |
| 14 | type(t) :: x |
| 15 | end |
| 16 | end |