aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDaniel Chen <cdchen@ca.ibm.com>2024-03-26 11:29:24 -0400
committerGitHub <noreply@github.com>2024-03-26 11:29:24 -0400
commit4998587e6f5f66d464ac22ad4c11fe9afd2d56ab (patch)
treef498c9901c9012f1b435bfcb72b9972d33a770e9 /clang/lib/CodeGen/CodeGenFunction.cpp
parent87519a2830eab4b634a5816f53fe773929eed531 (diff)
downloadllvm-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