[flang-commits] [flang] [flang] Accept proc ptr function result as actual argument without IN… (PR #128771)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Feb 26 09:17:13 PST 2025


klausler wrote:

> I added `intent(inout)` to the test case and got
> 
> ```
> ./t4.f:12:16: error: Actual argument associated with procedure pointer dummy argument 'p=' must be a pointer unless INTENT(IN)
>       call test1(genF1(1))
>                  ^^^^^^^^
> ```
> 
> May be `... must be a pointer for INTENT(INOUT).` Just a nit. Thanks for fixing it.

No.  `INTENT(IN OUT)` requires the actual argument to be definable.

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


More information about the flang-commits mailing list