| 1 |
! { dg-do compile } |
| 2 |
|
| 3 |
! Fails to compile because assumed-size arrays are not yet |
| 4 |
! handled with LOCAL / LOCAL_INIT, cf. PR fortran/101602 (comment 6) |
| 5 |
|
| 6 |
subroutine test_it(xx, yy) |
| 7 |
implicit none |
| 8 |
integer :: xx(:), yy(:,:) |
| 9 |
integer :: i, sz1, sz2 |
| 10 |
|
| 11 |
sz1 = size(xx) |
| 12 |
do , concurrent (i = 1 : sz1) local(xx) ! { dg-error "39: Sorry, LOCAL specifier at .1. for assumed-size array 'xx' is not yet supported" } |
| 13 |
xx(i) = 1 |
| 14 |
end do |
| 15 |
|
| 16 |
sz2 = size(yy,dim=1) |
| 17 |
do , concurrent (i=1:sz2) local_init(yy) ! { dg-error "40: Sorry, LOCAL_INIT specifier at .1. for assumed-size array 'yy' is not yet supported" } |
| 18 |
yy(i,:) = 1 |
| 19 |
end do |
| 20 |
end |