Skip to content

Conversation

@SunilKuravinakop
Copy link
Contributor

@SunilKuravinakop SunilKuravinakop commented Oct 27, 2025

In the default clause taking care of new comments in the previous "Support for Default clause variable category" 157063 and adding a new test case.

     variable category.
2) Adding a new test case
       clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
3) Taking care of new comments in
   llvm#157063
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang labels Oct 27, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 27, 2025

@llvm/pr-subscribers-clang

Author: None (SunilKuravinakop)

Changes

In the default clause, check for allocatable type in the variable category has been made more robust. Taking care of new comments in the previous "Support for Default clause variable category" 157063.


Full diff: https://github.com/llvm/llvm-project/pull/165276.diff

2 Files Affected:

  • (modified) clang/lib/Sema/SemaOpenMP.cpp (+20-5)
  • (added) clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp (+117)
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 5b5b1b685e153..f677be7f02583 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -1314,6 +1314,22 @@ static std::string getOpenMPClauseNameForDiag(OpenMPClauseKind C) {
   return getOpenMPClauseName(C).str();
 }
 
+bool isAllocatableType(QualType QT) {
+  if (QT->isPointerType())
+    return true;
+  QT = QT.getCanonicalType().getUnqualifiedType();
+  if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) {
+    if (isa<ClassTemplateSpecializationDecl>(RD)) {
+      std::string QName = RD->getQualifiedNameAsString();
+      return (QName == "std::vector" || QName == "vector" ||
+              QName == "std::unique_ptr" || QName == "unique_ptr" ||
+              QName == "std::shared_ptr" || QName == "shared_ptr" ||
+              QName == "llvm::SmallVector" || QName == "SmallVector");
+    }
+  }
+  return false;
+}
+
 DSAStackTy::DSAVarData DSAStackTy::getDSA(const_iterator &Iter,
                                           ValueDecl *D) const {
   D = getCanonicalDecl(D);
@@ -1370,20 +1386,19 @@ DSAStackTy::DSAVarData DSAStackTy::getDSA(const_iterator &Iter,
   DefaultDataSharingAttributes IterDA = Iter->DefaultAttr;
   switch (Iter->DefaultVCAttr) {
   case DSA_VC_aggregate:
-    if (!VD->getType()->isAggregateType())
+    if (!D->getType()->isAggregateType())
       IterDA = DSA_none;
     break;
   case DSA_VC_allocatable:
-    if (!(VD->getType()->isPointerType() ||
-          VD->getType()->isVariableArrayType()))
+    if (!isAllocatableType(D->getType()))
       IterDA = DSA_none;
     break;
   case DSA_VC_pointer:
-    if (!VD->getType()->isPointerType())
+    if (!D->getType()->isPointerType())
       IterDA = DSA_none;
     break;
   case DSA_VC_scalar:
-    if (!VD->getType()->isScalarType())
+    if (!D->getType()->isScalarType())
       IterDA = DSA_none;
     break;
   case DSA_VC_all:
diff --git a/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp b/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
new file mode 100644
index 0000000000000..b0674158f57e5
--- /dev/null
+++ b/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
@@ -0,0 +1,117 @@
+// RUN: %clangxx -DOMP60 -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm %s -o - | FileCheck --check-prefixes=OMP60 %s
+// expected-no-diagnostics
+#ifndef HEADER
+#define HEADER
+
+#include <vector>
+
+int global;
+#define VECTOR_SIZE 4
+int main (int argc, char **argv) {
+  int i,n;
+  int x;
+
+  n = VECTOR_SIZE;
+
+  #pragma omp parallel masked firstprivate(x) num_threads(2)
+  {
+     int *xPtr = nullptr;
+     // scalar
+     #pragma omp task default(shared:scalar)
+     {
+       xPtr = &x;
+     }
+     #pragma omp taskwait
+
+     // pointer
+     #pragma omp task default(shared:pointer) shared(x)
+     {
+       xPtr = &x;
+     }
+     #pragma omp taskwait
+  }
+
+  int *aggregate[VECTOR_SIZE] = {0,0,0,0};
+  std::vector<int *> arr(VECTOR_SIZE,0);
+  
+  #pragma omp parallel masked num_threads(2)
+  {
+     // aggregate
+     #pragma omp task default(shared:aggregate)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+
+     #pragma omp task default(shared:aggregate) shared(x)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+
+     // allocatable
+     #pragma omp task default(shared:allocatable)
+     for(i=0;i<n;i++) {
+       arr[i] = &x;
+     }
+     #pragma omp taskwait
+
+     #pragma omp task default(shared:allocatable) shared(x)
+     for(i=0;i<n;i++) {
+       arr[i] = &x;
+     }
+     #pragma omp taskwait
+
+     // all
+     #pragma omp task default(shared:all)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+  }
+}
+
+#endif
+
+// OMP60-LABEL: define {{.*}}main.omp_outlined{{.*}}
+// OMP60-NEXT:  entry:
+// OMP60-NEXT:    [[DOTGLOBAL_TID__ADDR:%.*]] = alloca ptr, align 8
+// OMP60-NEXT:    [[DOTBOUND_TID__ADDR:%.*]] = alloca ptr, align 8
+// OMP60: [[X_ADDR:%.*]] = alloca{{.*}}
+// OMP60: [[xPTR:%.*]] = alloca{{.*}}
+// OMP60: store ptr null, ptr [[xPTR]]{{.*}}
+// OMP60: store ptr [[xPTR]]{{.*}}
+// OMP60: store ptr [[X_ADDR]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: ret void
+//
+// OMP60: define {{.*}}main.omp_outlined{{.*}}
+// OMP60-NEXT:  entry:
+// OMP60-NEXT:    [[DOTGLOBAL_TID__ADDR:%.*]] = alloca ptr, align 8
+// OMP60-NEXT:    [[DOTBOUND_TID__ADDR:%.*]] = alloca ptr, align 8
+// OMP60: [[I_ADDR:%.*]] = alloca{{.*}}
+// OMP60-NEXT:  [[N_ADDR:%.*]] = alloca{{.*}}
+// OMP60-NEXT:  [[AGGREGATE_ADDR:%.*]] = alloca{{.*}}
+// OMP60-NEXT:  [[X_ADDR:%.*]] = alloca{{.*}}
+// OMP60-NEXT:  [[ARR_ADDR:%.*]] = alloca{{.*}}
+// OMP60: [[TMP0:%.*]] = load{{.*}}[[I_ADDR]]
+// OMP60-NEXT:  [[TMP1:%.*]] = load{{.*}}[[N_ADDR]]
+// OMP60-NEXT:  [[TMP2:%.*]] = load{{.*}}[[AGGREGATE_ADDR]]
+// OMP60-NEXT:  [[TMP3:%.*]] = load{{.*}}[[X_ADDR]]
+// OMP60-NEXT:  [[TMP4:%.*]] = load{{.*}}[[ARR_ADDR]]
+// OMP60: store ptr [[TMP2]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: store ptr [[TMP2]]{{.*}}
+// OMP60: store ptr [[TMP3]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: store ptr [[TMP4]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: store ptr [[TMP4]]{{.*}}
+// OMP60: store ptr [[TMP3]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: store ptr [[TMP0]]{{.*}}
+// OMP60: store ptr [[TMP1]]{{.*}}
+// OMP60: store ptr [[TMP2]]{{.*}}
+// OMP60: store ptr [[TMP3]]{{.*}}
+// OMP60-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// OMP60: ret void

Comment on lines 1317 to 1331
bool isAllocatableType(QualType QT) {
if (QT->isPointerType())
return true;
QT = QT.getCanonicalType().getUnqualifiedType();
if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) {
if (isa<ClassTemplateSpecializationDecl>(RD)) {
std::string QName = RD->getQualifiedNameAsString();
return (QName == "std::vector" || QName == "vector" ||
QName == "std::unique_ptr" || QName == "unique_ptr" ||
QName == "std::shared_ptr" || QName == "shared_ptr" ||
QName == "llvm::SmallVector" || QName == "SmallVector");
}
}
return false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poor check, it should not check the names, should check the members

Comment on lines 1329 to 1336
if (NS->isStdNamespace())
if (Name == "vector" || Name == "unique_ptr" ||
Name == "shared_ptr" || Name == "array")
return true;

if (NS->getIdentifier()->getName() == "llvm")
if (Name == "SmallVector")
return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should not be anything like this. Please, remove!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A similar kind of code exists in file clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp, function isStdSmartPtr( ). Without this I cannot check if the variable is of type Allocatable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Analayser is the analysis tool, not a compiler, it may produce wrong results.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code related to allocatable variable category is now removed by checkin #167735 of David Pagan. These changes have been pulled into the current bug fix.

@Ritanya-B-Bharadwaj Ritanya-B-Bharadwaj merged commit 39774f9 into llvm:main Nov 14, 2025
10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/40161

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --allow-unused-prefixes /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp Line 6: 'vector' file not found
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --allow-unused-prefixes /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --allow-unused-prefixes /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# `-----------------------------
# error: command failed with exit status: 2

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/26374

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp -o - | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe --allow-unused-prefixes Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp' -o -
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp Line 6: 'vector' file not found
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' --allow-unused-prefixes 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe --allow-unused-prefixes Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\parallel_default_variableCategory_codegen.cpp
# `-----------------------------
# error: command failed with exit status: 2

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/28052

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[873/1466] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/wasm-ld
-- Testing: 23105 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 
FAIL: Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp (16175 of 23105)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/../include/c++/v1/__config Line 13: '__config_site' file not found
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# `-----------------------------
# error: command failed with exit status: 2

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp


Testing Time: 154.01s

Total Discovered Tests: 48988
  Skipped          :     8 (0.02%)
  Unsupported      :  1218 (2.49%)
  Passed           : 47737 (97.45%)
  Expectedly Failed:    24 (0.05%)
  Failed           :     1 (0.00%)
Step 7 (check) failure: check (failure)
...
[873/1466] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/wasm-ld
-- Testing: 23105 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 
FAIL: Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp (16175 of 23105)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/../include/c++/v1/__config Line 13: '__config_site' file not found
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nqq1la50/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# `-----------------------------
# error: command failed with exit status: 2

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp


Testing Time: 154.01s

Total Discovered Tests: 48988
  Skipped          :     8 (0.02%)
  Unsupported      :  1218 (2.49%)
  Passed           : 47737 (97.45%)
  Expectedly Failed:    24 (0.05%)
  Failed           :     1 (0.00%)

asb pushed a commit that referenced this pull request Nov 14, 2025
…68083)

Reverts #165276

The newly added test failed on a number of buildbots.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Nov 14, 2025
…tegory" (#168083)

Reverts llvm/llvm-project#165276

The newly added test failed on a number of buildbots.
SunilKuravinakop pushed a commit to SunilKuravinakop/llvm-project that referenced this pull request Nov 14, 2025
… test to restore Ubuntu build. "allocate".

This is not needed as allocatable modifier is not applicable to the default clause in C/C++.
chichunchen pushed a commit that referenced this pull request Nov 14, 2025
Same changes as in fix for
[165276](#165276) except for
remove unnecessary <vector> include in test to restore Ubuntu build.
This is not needed as allocatable modifier is not applicable to the
default clause in C/C++.

Co-authored-by: Sunil Kuravinakop <[email protected]>
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Nov 14, 2025
…#168112)

Same changes as in fix for
[165276](llvm/llvm-project#165276) except for
remove unnecessary <vector> include in test to restore Ubuntu build.
This is not needed as allocatable modifier is not applicable to the
default clause in C/C++.

Co-authored-by: Sunil Kuravinakop <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants