| 1 |
! { dg-do compile } |
| 2 |
! |
| 3 |
! Code contributed by Gerhard Steinmetz |
| 4 |
! |
| 5 |
program pr82620 |
| 6 |
type t(a) |
| 7 |
integer, len :: a |
| 8 |
end type |
| 9 |
type(t(:)), allocatable :: x, y |
| 10 |
allocate(t(4) :: x) |
| 11 |
allocate)t(7) :: y) ! { dg-error "Syntax error in ALLOCATE" } |
| 12 |
end program pr82620 |