[flang] Respect inaccessibility of type-bound ASSIGNMENT(=)
authorPeter Klausler <pklausler@nvidia.com>
Wed, 8 Feb 2023 18:44:20 +0000 (10:44 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 13 Feb 2023 23:58:31 +0000 (15:58 -0800)
commit632fd9fb861c5deb24a6339d76f29a22462cadd8
tree081aded16f37ae08229860cc2d5ff15af7f3ccf8
parent5402110e0123ca323a5f6eaa3ed225027ce0179b
[flang] Respect inaccessibility of type-bound ASSIGNMENT(=)

When a derived type has a PRIVATE type-bound generic binding for
a defined ASSIGNMENT(=), don't use it in scopes outside of the
module that defines the type.  We already get this case right
for other type-bound generics, including defined operators,
and for non-type-bound generic interfaces, but the check was
not applied for this case.

Differential Revision: https://reviews.llvm.org/D143826
flang/lib/Semantics/expression.cpp