Daniel Chen
Daniel Chen
``` MODULE M INTERFACE FUNCTION ExtINDEX(Arg1, Arg2, Arg3)!, Arg4) INTEGER :: ExtINDEX CHARACTER(*), INTENT(IN) :: Arg1, Arg2 LOGICAL, OPTIONAL, INTENT(IN) :: Arg3 ! INTEGER, OPTIONAL, INTENT(IN) :: Arg4 END FUNCTION...
I have verified PR #83073 has fixed the reproducer and the original test case. Thanks for the quick fix! @klausler
Referencing the procptr segfaults as: ``` MODULE M INTERFACE FUNCTION ExtINDEX(Arg1, Arg2, Arg3) INTEGER :: ExtINDEX CHARACTER(*), INTENT(IN) :: Arg1, Arg2 LOGICAL, OPTIONAL, INTENT(IN) :: Arg3 END FUNCTION END INTERFACE...
gfortran and NAG compiler compile this code successfully. ifort gives a warning but let it pass. I have confirmed that the code itself is conforming. We have functional test cases...
> How do you know that the code conforms? I checked with Malcolm Cohen at J3. I also couldn't find anything in the standard disallow it. We have functional test...
Yeah, the `subroutine` case you have is indeed troublesome. I agree that the standard should clarify about it especially when it passes itself as actual argument. I would also agree...
You are right. The intended code is supposed to be ``` PROCEDURE(ModFun), POINTER :: ProcPtr CONTAINS RECURSIVE FUNCTION ModFun() RESULT(res) REAL :: res ProcPtr => ModFun res = 1.0 END...
I have verified PR #82842 fixed the issue. Flang now issues ``` A procedure declaration statement with a binding name may not declare multiple procedures procedure(foo), BIND(C, NAME='myfptr') :: p1,...
@k-arrows This issue seems fixed.
> Is it the same as #82640? I think it is in the same category. The possible difference is that the test case in this issue should pass a descriptor...