| Issue |
173980
|
| Summary |
[Flang][OpenMP] Missing syntax support for linear clause in OpenMP 5.0
|
| Labels |
openmp,
flang
|
| Assignees |
|
| Reporter |
Thirumalai-Shaktivel
|
MRE:
```
!$omp declare simd linear (val (x) : step (1))
```
Godbolt link: https://godbolt.org/z/fozfWTWc6
Output:
```
$ flang-new -fopenmp -fopenmp-version=50
error: Could not parse /app/example.f90
/app/example.f90:2:20: error: expected end of line
!$omp declare simd linear (val (x) : step (1))
^
/app/example.f90:2:1: in the context: specification construct
!$omp declare simd linear (val (x) : step (1))
^
/app/example.f90:1:1: in the context: main program
program test
^
```
The Documentation reference syntax guide says:
```
linear (linear-list[: linear-step])
linear-list: list or modifier(list)
modifier: ref, val, or uval (C: modifier may only be val)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs