[flang] Add lcobound and ucobound to the list of intrinsics
authorKatherine Rasmussen <krasmussen@lbl.gov>
Sat, 14 May 2022 04:41:21 +0000 (21:41 -0700)
committerKatherine Rasmussen <krasmussen@lbl.gov>
Fri, 2 Sep 2022 00:17:54 +0000 (17:17 -0700)
commit7dbbf77e1f18d1d053489e68dad7fbfdf399f360
tree2677781ca1335f42407f06c52e03d16bc7545e0a
parentced4e0006fab22f37a165635896a6776f79bc4a9
[flang] Add lcobound and ucobound to the list of intrinsics

Add the coarray intrinsic functions, lcobound and ucobound, to the
list of intrinsics. For both of these functions, add a check to
ensure that if the optional dim argument is present and statically
checkable, its value is in the inclusive range of 1 and the corank
of the coarray argument. In the semantics tests for lcobound and
ucobound, remove the XFAIL directive, add the ERROR directives and
add additional standard-conforming and non-standard conforming
calls.

Reviewed By: klausler, craig.rasmussen

Differential Revision: https://reviews.llvm.org/D126721
flang/docs/Intrinsics.md
flang/lib/Evaluate/intrinsics.cpp
flang/test/Semantics/lcobound.f90
flang/test/Semantics/ucobound.f90