[flang-commits] [PATCH] D124295: [flang] Avoid global name conflict when BIND(C, NAME=) is used
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Apr 22 14:09:50 PDT 2022
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
At the top level of program units in a source file, two subprograms
are allowed to have the same name if at least one of them has a
distinct interoperable binding name. F18 <https://reviews.llvm.org/F18>'s symbol table requires
(most) symbols in a scope to have distinct names, though. Solve
by using compiler-created names for the symbols of global scope
subprograms that have interoperable binding names.
https://reviews.llvm.org/D124295
Files:
flang/lib/Semantics/program-tree.cpp
flang/lib/Semantics/program-tree.h
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/bind-c01.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124295.424601.patch
Type: text/x-patch
Size: 8677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220422/f8739e3a/attachment-0001.bin>
More information about the flang-commits
mailing list