[flang] Don't inherit ELEMENTAL attribute from intrinsics for TBP bindings
authorPeter Klausler <pklausler@nvidia.com>
Wed, 27 Jul 2022 20:15:24 +0000 (13:15 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 9 Aug 2022 15:09:32 +0000 (08:09 -0700)
commit5e8094bae50b1dd533ca0a20693d28a58b9c0d59
tree46528fbaacf019a56c10361bc73e73b3e2fcde6c
parentf53f2f232f794a257c270f4c273b9c9000421c81
[flang] Don't inherit ELEMENTAL attribute from intrinsics for TBP bindings

Type-bound procedure bindings that specify intrinsic procedures as their
interfaces should not acquire the ELEMENTAL attribute from the purposes
of compatibility checking between inherited bindings and their overrides
in extended derived types.

Differential Revision: https://reviews.llvm.org/D131104
flang/lib/Evaluate/characteristics.cpp
flang/lib/Evaluate/tools.cpp
flang/lib/Semantics/check-declarations.cpp