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

Both languages are treating "parse-assignment-expr" as a "just give up".  
Recovery from a parse assignment expression failure is really tough, so both 
languages 'punt' (the Expected-statement is because omp parallel has an 
associated statement, so after the pragma it tries to parse a statement).

https://github.com/llvm/llvm-project/pull/214259
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to