[flang-commits] [PATCH] D126141: [flang] Ignore BIND(C) binding name conflicts of inner procedures
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon May 23 18:27:28 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG037732289798: [flang] Ignore BIND(C) binding name conflicts of inner procedures (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126141/new/
https://reviews.llvm.org/D126141
Files:
flang/lib/Semantics/check-declarations.cpp
Index: flang/lib/Semantics/check-declarations.cpp
===================================================================
--- flang/lib/Semantics/check-declarations.cpp
+++ flang/lib/Semantics/check-declarations.cpp
@@ -1857,7 +1857,9 @@
static const std::string *DefinesBindCName(const Symbol &symbol) {
const auto *subp{symbol.detailsIf<SubprogramDetails>()};
- if ((subp && !subp->isInterface()) || symbol.has<ObjectEntityDetails>()) {
+ if ((subp && !subp->isInterface() &&
+ ClassifyProcedure(symbol) != ProcedureDefinitionClass::Internal) ||
+ symbol.has<ObjectEntityDetails>()) {
// Symbol defines data or entry point
return symbol.GetBindName();
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126141.431552.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220524/c18be6d8/attachment.bin>
More information about the flang-commits
mailing list