[flang] Fix crash: ENTRY with generic interface of the same name
authorPeter Klausler <pklausler@nvidia.com>
Wed, 16 Mar 2022 17:16:45 +0000 (10:16 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 22 Mar 2022 18:10:30 +0000 (11:10 -0700)
commit54d19ba2084ca366b99b95ed22a6862819c55c49
tree4618bfb9270b1afabdcd93e7b1ad05eda13fe633
parente4fb75a354740bf45dab0ebd43f37ab2fdeae3bf
[flang] Fix crash: ENTRY with generic interface of the same name

Name resolution was crashing while processing the ENTRY statement
due to a lack of special-case code necessary to handle the indirection
needed when the generic has the same name as the ENTRY.

Differential Revision: https://reviews.llvm.org/D122050
flang/lib/Semantics/resolve-names.cpp