| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-O2 -Wall" } |
| 3 |
! PR fortran/103475 - ICE in gfc_expr_attr |
| 4 |
! Contributed by G.Steinmetz |
| 5 |
|
| 6 |
program p |
| 7 |
type t |
| 8 |
end type |
| 9 |
class(t) :: x ! { dg-error "must be dummy, allocatable or pointer" } |
| 10 |
y = x() ! { dg-error "Cannot convert invalid class" } |
| 11 |
end |