[flang] Catch inconsistent function/subroutine usage of procedure pointer components
authorPeter Klausler <pklausler@nvidia.com>
Tue, 11 Oct 2022 23:31:47 +0000 (16:31 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Sat, 29 Oct 2022 23:08:07 +0000 (16:08 -0700)
commit874fc5339e7c59fa624ef7bf492ac53bb4f8962b
tree91d8a1ee9d217633db68f42b8e1968aba6be9b2c
parent78d59a6500df1811e99b9413d09c3163b08c693e
[flang] Catch inconsistent function/subroutine usage of procedure pointer components

When a derived type has a procedure pointer component with no interface,
we can't do a lot of checking on its call sites, but we can at least require
that the same procedure pointer component be used consistently as either
a function or as a subroutine, but not both.

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