[clang] [OpenACC/OpenMP/Parser] Teach ParseCXXInlineMethods about pragmas (PR #214259)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 08:52:02 PDT 2026


================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 %s -verify -fopenmp
+
+struct Type {
+  void foo() {
+#pragma omp parallel private(bar })
+    // expected-error at -1{{use of undeclared identifier 'bar'}}
+    // expected-error at +1{{expected statement}}
+  }
----------------
cor3ntin wrote:

I'm surprised there are no diagnostic for the }

https://github.com/llvm/llvm-project/pull/214259


More information about the cfe-commits mailing list