diff options
author | Daniel Chen <cdchen@ca.ibm.com> | 2024-03-26 11:29:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 11:29:24 -0400 |
commit | 4998587e6f5f66d464ac22ad4c11fe9afd2d56ab (patch) | |
tree | f498c9901c9012f1b435bfcb72b9972d33a770e9 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 87519a2830eab4b634a5816f53fe773929eed531 (diff) | |
download | llvm-4998587e6f5f66d464ac22ad4c11fe9afd2d56ab.zip llvm-4998587e6f5f66d464ac22ad4c11fe9afd2d56ab.tar.gz llvm-4998587e6f5f66d464ac22ad4c11fe9afd2d56ab.tar.bz2 |
[Flang] Support for passing procedure pointer, reference to a function that returns a procedure pointer to structure constructor. (#86533)
This PR fixes `not yet implemented: procedure pointer component in
structure constructor` as shown in the following test case.
```
MODULE M
TYPE :: DT
PROCEDURE(Fun), POINTER, NOPASS :: pp1
END TYPE
CONTAINS
INTEGER FUNCTION Fun(Arg)
INTEGER :: Arg
Fun = Arg
END FUNCTION
END MODULE
PROGRAM MAIN
USE M
IMPLICIT NONE
TYPE (DT) :: v2
PROCEDURE(FUN), POINTER :: pp2
v2 = DT(pp2)
v2 = DT(bar())
CONTAINS
FUNCTION BAR() RESULT(res)
PROCEDURE(FUN), POINTER :: res
END
END
```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions