| Issue |
234106
|
| Summary |
Erroneous verification of REF modifier on LINEAR clause
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
mmuetzel
|
Some projects that still built without errors with LLVM Flang 22 started to fail building with LLVM Flang 23 (e.g., [ElmerFEM](https://github.com/ElmerCSC/elmerfem/pull/753#issuecomment-6124393919)).
The new error looks like the following:
```
D:/a/elmerfem/elmerfem/fem/src/H1Basis.F90:504:55: error: The list item `u` specified with the REF 'linear-modifier' must be polymorphic variable, assumed-shape array, or a variable with the `ALLOCATABLE` attribute
!$OMP DECLARE SIMD UNIFORM(node) LINEAR(REF(u)) LINEAR(REF(v))&
^
D:/a/elmerfem/elmerfem/fem/src/H1Basis.F90:504:70: error: The list item `v` specified with the REF 'linear-modifier' must be polymorphic variable, assumed-shape array, or a variable with the `ALLOCATABLE` attribute
!$OMP DECLARE SIMD UNIFORM(node) LINEAR(REF(u)) LINEAR(REF(v))&
^
```
The issue is that there is an error in the OpenMP specifications (and LLVM Flang 23 implements the erroneous wording to its letter).
See also this question on stackoverflow: https://stackoverflow.com/questions/79916911/openmp-5-2-declare-simd-with-linearp-ref-inconsistency-between-specification
The specifications currently say:
> If linear-modifier is ref, list items must be polymorphic variables, assumed-shape arrays, or variables with the ALLOCATABLE attribute.
But it should say "must *not* be" instead.
That issue has already been fixed by @kparzysz in #232367 on the default branch.
Please backport that fix to LLVM Flang 23 to fix that regression from LLVM Flang 22.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs