| 1 |
! { dg-do compile } |
| 2 |
! PR fortran/108434 - ICE in class_allocatable |
| 3 |
! Contributed by G.Steinmetz <[email protected]> |
| 4 |
|
| 5 |
program p |
| 6 |
type t |
| 7 |
class(c), pointer :: a(2) ! { dg-error "must have a deferred shape" } |
| 8 |
end type t |
| 9 |
type s |
| 10 |
class(d), allocatable :: a(2) ! { dg-error "must have a deferred shape|not been declared" } |
| 11 |
end type |
| 12 |
type u |
| 13 |
type(e), allocatable :: b(2) ! { dg-error "must have a deferred shape|not been declared" } |
| 14 |
end type |
| 15 |
class(t), allocatable :: x |
| 16 |
class(t), pointer :: y |
| 17 |
class(s), allocatable :: x2 |
| 18 |
class(s), pointer :: y2 |
| 19 |
end |