[flang] Catch attempt to apply ASYNCHRONOUS attribute to a non-variable
authorPeter Klausler <pklausler@nvidia.com>
Tue, 14 Mar 2023 20:10:25 +0000 (13:10 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 27 Mar 2023 22:14:44 +0000 (15:14 -0700)
commitfe8abccbcd473ce9d6b695a31e16519df1499faf
tree55a22b147ac5518ac3e545e505e084e82706effb
parente76d236c1cebfb7d31f722d242bc927b79dcdb49
[flang] Catch attempt to apply ASYNCHRONOUS attribute to a non-variable

Complain about the ASYNCHRONOUS attribute on symbols that aren't
variables.

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