| 1 |
! { dg-do compile } |
| 2 |
! PR fortran/98284 - ICE in get_array_index |
| 3 |
|
| 4 |
program p |
| 5 |
implicit none |
| 6 |
type t |
| 7 |
integer, allocatable :: h(:) |
| 8 |
end type t |
| 9 |
type(t) :: u |
| 10 |
integer :: i |
| 11 |
data (u% h(i),i=1,8) /8*1/ ! { dg-error "cannot have the ALLOCATABLE attribute" } |
| 12 |
end |