[all-commits] [llvm/llvm-project] 7ec87c: [Flang] Support for procedure pointer component de...
Daniel Chen via All-commits
all-commits at lists.llvm.org
Wed Apr 3 05:51:36 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ec87c473936245ea11f8bb64c936e5112f25e6a
https://github.com/llvm/llvm-project/commit/7ec87c473936245ea11f8bb64c936e5112f25e6a
Author: Daniel Chen <cdchen at ca.ibm.com>
Date: 2024-04-03 (Wed, 03 Apr 2024)
Changed paths:
M flang/lib/Lower/ConvertVariable.cpp
A flang/test/Lower/HLFIR/procedure-pointer-component-default-init.f90
Log Message:
-----------
[Flang] Support for procedure pointer component default initialization. (#87356)
This PR is to address `TODO(loc, "procedure pointer component default
initialization");`.
It handles default init for procedure pointer components in a derived
type that is 32 bytes or larger (Default init for smaller size type has
already been handled).
```
interface
subroutine sub()
end
end interface
type dt
real :: r1 = 5.0
procedure(real), pointer, nopass :: pp1 => null()
real, pointer :: rp1 => null()
procedure(), pointer, nopass :: pp2 => sub
end type
type(dt) :: dd1
end
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list