[llvm-branch-commits] [flang] aa7ff64 - [flang][OpenMP] Fix DECLARE_SIMD warning annotations in linear-clause01.f90
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Nov 8 06:42:52 PST 2026
Author: Mark Zhuang
Date: 2026-11-08T15:42:14+01:00
New Revision: aa7ff64f138d006c03acb7681986c8d5983ab3e7
URL: https://github.com/llvm/llvm-project/commit/aa7ff64f138d006c03acb7681986c8d5983ab3e7
DIFF: https://github.com/llvm/llvm-project/commit/aa7ff64f138d006c03acb7681986c8d5983ab3e7.diff
LOG: [flang][OpenMP] Fix DECLARE_SIMD warning annotations in linear-clause01.f90
release/23.x picked 2cc5b8ca (warn on ignored DECLARE_SIMD) before
94467edd (REF modifier verification), the reverse of their order on main.
2cc5b8ca therefore annotated only Case 1-4, and 94467edd later appended
Case 5-7 without the warning annotation, failing check-flang at lines
76/83/90.
Assisted-by: Claude
Added:
Modified:
flang/test/Semantics/OpenMP/linear-clause01.f90
Removed:
################################################################################
diff --git a/flang/test/Semantics/OpenMP/linear-clause01.f90 b/flang/test/Semantics/OpenMP/linear-clause01.f90
index 81a69b902ce4f5..c0b7f74fe06d3e 100644
--- a/flang/test/Semantics/OpenMP/linear-clause01.f90
+++ b/flang/test/Semantics/OpenMP/linear-clause01.f90
@@ -72,6 +72,7 @@ end subroutine linear_clause_04
! Case 5
subroutine linear_clause_05(x)
integer :: x(:)
+ !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
!ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
!$omp declare simd linear(x : ref)
end subroutine linear_clause_05
@@ -79,6 +80,7 @@ end subroutine linear_clause_05
! Case 6
subroutine linear_clause_06(x)
integer, allocatable :: x(:)
+ !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
!ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
!$omp declare simd linear(x : ref)
end subroutine linear_clause_06
@@ -86,6 +88,7 @@ end subroutine linear_clause_06
! Case 7
subroutine linear_clause_07(x)
type(*) :: x(:)
+ !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
!ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
!$omp declare simd linear(x : ref)
end subroutine linear_clause_07
More information about the llvm-branch-commits
mailing list