[flang] Disallow ASYNCHRONOUS for subroutine
authorPeter Klausler <pklausler@nvidia.com>
Wed, 19 Jul 2023 20:56:32 +0000 (13:56 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Fri, 21 Jul 2023 20:40:30 +0000 (13:40 -0700)
commit24445fc15ca451b9db5bc928a2b5bc9c8ef99792
tree38368208d7c4ab300e3f3fd8461a038aa02f6755
parente7cb6778000bdc915508cbe06ff23d976a1e6a51
[flang] Disallow ASYNCHRONOUS for subroutine

The check for inappropriate usage of the ASYNCHRONOUS attribute
needed to be moved in declaration checking so that it can catch
attempts to use it on a subroutine.

Differential Revision: https://reviews.llvm.org/D155970
flang/lib/Semantics/check-declarations.cpp
flang/test/Semantics/resolve20.f90