Files
clang-p2996/flang/test/Semantics/associate04.f90
Peter Klausler ed5a78a13f [flang] Catch ASSOCIATE(x=>assumed_rank) (#100626)
An assumed-rank dummy argument cannot be the variable or expression in
the selector of an ASSOCIATE construct. (SELECT TYPE/RANK are fine.)
2024-07-30 09:44:09 -07:00

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