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

Daniel Chen via flang-commits flang-commits at lists.llvm.org
Wed May 22 08:49:12 PDT 2024


DanielCChen wrote:

@klausler This PR seems broke some of our test cases. The following is a reproducer.
```
subroutine sub(a) bind(c)
  use, intrinsic :: iso_c_binding
  integer(c_int16_t), value :: a
  entry ent_intval1 (a)
  return
end
```
Flang now complains:

```
t.f:3:32: error: A VALUE dummy argument must not appear in a non-BIND(C) entry of a subprogram with an entry that must be interoperable
    integer(c_int16_t), value :: a
                                 ^
```

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


More information about the flang-commits mailing list