[flang] Rework name resolution of Cray pointer declarations
authorPeter Klausler <pklausler@nvidia.com>
Tue, 20 Jun 2023 22:40:35 +0000 (15:40 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 22 Jun 2023 13:35:42 +0000 (06:35 -0700)
commit3d7c8367ef7dbd0dd8a012843e1167de9f7b7b2f
tree24e25f5dd5cc7727be7ad9f2a9a045ef77a29cc5
parentd4da4934c39d275d4a496a224b483515e30f8989
[flang] Rework name resolution of Cray pointer declarations

The current code has redundancy with the infrastructure for
declaration checking that can be replaced by better usage of
the parse tree walking framework.  This also fixes LLVM flang
bug #58971.

Differential Revision: https://reviews.llvm.org/D153385
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/resolve61.f90