[flang-commits] [flang] [flang] Check for BIND(C) name conflicts with alternate entries (PR #156563)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Sep 3 08:17:12 PDT 2025


================
@@ -1531,6 +1531,15 @@ class Scope;
 // point to its subprogram.
 const Symbol *GetMainEntry(const Symbol *);
 
+inline bool IsAlternateEntry(const Symbol *symbol) {
----------------
eugeneepshteyn wrote:

You mean have `IsAlternateEntry(&symbol)` be primary and `IsAlternateEntry(*symbol)` call it? I started it that way, but because `GetMainEntry()` returns a pointer, it looked somewhat less clean.

https://github.com/llvm/llvm-project/pull/156563


More information about the flang-commits mailing list