[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 23 08:17:25 PDT 2025
================
@@ -101,9 +103,11 @@ T tmain(T argc, T *argv) {
a = 2;
#pragma omp task default(none), private(argc, b) firstprivate(argv) shared(d) if (argc > 0) final(S<T>::TS > 0) priority(argc) affinity(argc, argv[b:argc], arr[:], ([argc][sizeof(T)])argv)
foo();
+#ifndef OMP60
----------------
Ritanya-B-Bharadwaj wrote:
This is the error generated for 60
```
error: 'expected-error' diagnostics seen but not expected:
File ./clang/test/OpenMP/task_ast_print.cpp Line 106: incorrect reduction identifier, expected one of '+', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'int'
File ./clang/test/OpenMP/task_ast_print.cpp Line 107: incorrect reduction identifier, expected one of '+', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'int'
File ./clang/test/OpenMP/task_ast_print.cpp Line 106: incorrect reduction identifier, expected one of '+', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'long'
File ./clang/test/OpenMP/task_ast_print.cpp Line 107: incorrect reduction identifier, expected one of '+', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'long'
error: 'expected-note' diagnostics seen but not expected:
File ./clang/test/OpenMP/task_ast_print.cpp Line 212: in instantiation of function template specialization 'tmain<int, 5>' requested here
File ./clang/test/OpenMP/task_ast_print.cpp Line 212: in instantiation of function template specialization 'tmain<long, 1>' requested here
6 errors generated.
```
https://github.com/llvm/llvm-project/pull/135807
More information about the cfe-commits
mailing list