[flang-commits] [flang] [flang][Parser] Allow constant expressions in data statement constants (PR #224707)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Tue Sep 22 04:15:47 PDT 2026
DanielCChen wrote:
Just for the reference.
IBM XLF compiler supports such syntax in component initialization as in the following code, but not the original one in the PR description I posted.
```
type dt
integer :: int1 /2**2/
integer :: int2 = 2**2
integer :: int3 /2/
end type
type(dt) :: d1
print*, d1%int1
print*, d1%int2
print*, d1%int3
end
```
It seems neither gfortran nor ifx supports it.
https://github.com/llvm/llvm-project/pull/224707
More information about the flang-commits
mailing list