[flang] Fix module file issue with renamed shadowed specific procedures
authorPeter Klausler <pklausler@nvidia.com>
Tue, 23 Aug 2022 21:31:18 +0000 (14:31 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 25 Aug 2022 22:47:52 +0000 (15:47 -0700)
commit950a1618fd6028c76649db1668dc4f97bc69d782
treeafb2c0c2ed546f527c9e12b045174d8740116d09
parent194778117e57360686eac9bfec7a85f43bbdc628
[flang] Fix module file issue with renamed shadowed specific procedures

A specific procedure in the list of specific procedures associated with
a generic interface needs to be a symbol that is not inadvertently
resolved to its ultimate symbol in another module when it is also
shadowed by a generic interface of the same name.

Differential Revision: https://reviews.llvm.org/D132686
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/modfile50.f90 [new file with mode: 0644]