| Issue |
108898
|
| Summary |
[Flang] association specified in association-list of associate construct does not execute correctly
|
| Labels |
flang
|
| Assignees |
|
| Reporter |
ohno-fj
|
```
Version of flang-new : 20.0.0(1cc4c87198ec0c6febca3f6ed03357e9e091cfd4)/AArch64
```
`association` specified in `association-list` of `associate` construct does not execute correctly.
In the attached program, when all `association` in `associate` construct are evaluated, a, b, and c in `associate-name` are expected to be equal to 4.
The following are the test program, Flang-new, Gfortran and ifort compilation/execution result.
242_.f90:
```fortran
program main
integer :: a = 3
a = a - 1
associate(a=>4,b=>a,c=>b)
print *,a
print *,b
print *,c
end associate
end program main
```
```
$ flang-new 242_.f90; ./a.out
4
2
-2.941608E-39
$
```
```
$ gfortran 242_.f90; ./a.out
4
2
-8.15272589E+24
$
```
```
$ ifort -diag-disable=10448 242_.f90; ./a.out
4
2
2
$
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs