| 1 |
program p |
| 2 |
integer :: i |
| 3 |
read (*,*) i%kind ! { dg-error "Expecting variable or io-implied-do" } |
| 4 |
end |
| 5 |
|
| 6 |
subroutine t |
| 7 |
integer, allocatable :: x(:) |
| 8 |
integer :: stat |
| 9 |
allocate (x(3), stat=stat%kind) ! { dg-error "cannot be a constant" } |
| 10 |
end |
| 11 |
|
| 12 |
subroutine u |
| 13 |
integer, allocatable :: x(:) |
| 14 |
integer :: stat |
| 15 |
allocate (x(3), stat%kind=stat) ! { dg-error "Unexpected constant" } |
| 16 |
end |
| 17 |
|
| 18 |
subroutine v |
| 19 |
integer, allocatable :: x(:) |
| 20 |
integer :: stat |
| 21 |
deallocate (x, stat%kind=stat) ! { dg-error "Unexpected constant" } |
| 22 |
end |