[flang] Special handling of ENTRY BIND(C,NAME=...)
authorPeter Klausler <pklausler@nvidia.com>
Wed, 21 Sep 2022 19:06:40 +0000 (12:06 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Fri, 23 Sep 2022 18:01:17 +0000 (11:01 -0700)
commit4c9d54982c85afde04e93b4f4d3ff648e48331db
treeb530c40bb6345348500573dd3ade4cf9de5e0798
parentb918498193276be7a142a12d4a02d1d2da8e60d9
[flang] Special handling of ENTRY BIND(C,NAME=...)

We apply special symbol table scoping to top-level subroutine
and function names that have interoperable binding names, so
that it's possible to define the same subroutine/function name
more than once at the top level so long as their binding names
are distinct.  But we don't use those scoping techniques for
ENTRY statement symbols with interoperable binding names,
which can lead to bogus semantic errors when the same ENTRY
name is defined multiple times with distinct binding names.

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