[flang] Apply default module accessibility rules a second time (bug#62598)
authorPeter Klausler <pklausler@nvidia.com>
Wed, 10 May 2023 20:26:01 +0000 (13:26 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 16 May 2023 17:19:00 +0000 (10:19 -0700)
commit689de4c6759fa810d827aee06a0ab060b01172ce
treeb823ba7d353c01e2a8f99f6c819aea48547dbfbe
parented1539c6ad3d2c6e888985d21f841504f69beab3
[flang] Apply default module accessibility rules a second time (bug#62598)

Apply the default PUBLIC/PRIVATE accessibility of a module to its symbols
a second time after it is known that all symbols, including implicitly typed
names from NAMELIST groups and specification expressions in module subprograms,
have been created in its scope.

Fixes https://github.com/llvm/llvm-project/issues/62598.

Differential Revision: https://reviews.llvm.org/D150307
flang/docs/Extensions.md
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/symbol.cpp
flang/test/Semantics/symbol26.f90 [new file with mode: 0644]