[flang] Ignore inaccessible components when extending types or constructing structures
authorPeter Klausler <pklausler@nvidia.com>
Wed, 3 Aug 2022 19:24:09 +0000 (12:24 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 9 Aug 2022 14:44:02 +0000 (07:44 -0700)
commite1ee20d574df8ba6efb01eec3d2fa3c9cd82984d
treed972b45b4cca43cc0f5b47b52099ecc35ea9b810
parent08cc03befd44c1157fa5b5586c1a9861a5869203
[flang] Ignore inaccessible components when extending types or constructing structures

Inaccessible components -- those declared PRIVATE in another module -- should
be allowed to be redeclared in extended types, and should be ignored if
they appear as keywords in structure constructors.

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