[flang] Diagnose bad attributes of implicit interface externals
authorPeter Klausler <pklausler@nvidia.com>
Tue, 14 Mar 2023 19:38:26 +0000 (12:38 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 27 Mar 2023 22:05:33 +0000 (15:05 -0700)
commit88a097d129bc02036317e8925089724705fb8fae
treea9ad72dd734e5490d46e0e52d5eabdfbd87242ae
parent57e1943e8f8f1b28460678d1c25eaa36ba09b59b
[flang] Diagnose bad attributes of implicit interface externals

Procedures with the EXTERNAL attribute (explicit or implied) are
not permitted to be ALLOCATABLE or be arrays if their interfaces
are implicit.

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