[flang-commits] [flang] [flang] Relax checking of dummy procedures under BIND(C) (PR #92474)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed May 22 09:31:09 PDT 2024


klausler wrote:

> > That is exactly the kind of usage that I wanted to catch; will investigate further to see whether this situation is really a problem or not.
> 
> Thanks. Adding `bind(c)` to the entry statement will make the code compile.

Yes, having BIND(C) on both entry points resolves the discrepancy.  My worry here is that the BIND(C) entry point will expect a VALUE argument to arrive in a register and the non-BIND(C) entry point will not;  but maybe it doesn't matter.

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


More information about the flang-commits mailing list