| Issue |
171006
|
| Summary |
[flang][OpenMP] Incorrect result with SIMD LINEAR
|
| Labels |
flang:openmp
|
| Assignees |
|
| Reporter |
eugeneepshteyn
|
Reproducer:
```
implicit none
integer :: j, count = 1
!$omp simd linear(count)
do j=1,10
count = count + 1
end do
print *, count
end
```
I believe result should be 11. With 315c904e3e1c00ea1ec7f0757e4c538ec2513624 x86_64-unknown-linux-gnu flang:
```
$ flang -fopenmp omp-test.f90 && ./a.out
1
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs