An assumed-rank dummy argument cannot be the variable or expression in the selector of an ASSOCIATE construct. (SELECT TYPE/RANK are fine.)
8 lines
176 B
Fortran
8 lines
176 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
subroutine bad(a)
|
|
real :: a(..)
|
|
!ERROR: Selector must not be assumed-rank
|
|
associate(x => a)
|
|
end associate
|
|
end subroutine
|