[flang] Catch error: COMMON block and implicit interface external subprogram with...
authorPeter Klausler <pklausler@nvidia.com>
Mon, 26 Jun 2023 17:00:10 +0000 (10:00 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 27 Jun 2023 20:18:30 +0000 (13:18 -0700)
commit1c900ed373983d52a230b6baf7bfb49eaec155a5
tree890f018121fe9157fa4bc5660b9bdc1ad4bae80a
parent49428bad5852551d7b4fb70a70939572a79da730
[flang] Catch error: COMMON block and implicit interface external subprogram with same name

Declaration checking catches the error of a COMMON block and a subprogram
definition having the same name, but misses the case of a COMMON block
and an a reference to an external subprogram with an implicit interface.
Fix.  Fixes bug https://github.com/llvm/llvm-project/issues/63247.

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