================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fopenmp -fsyntax-only -verify %s
+
+void foo() {
----------------
alexey-bataev wrote:
Add something like this too:
```
void nested() {
#pragma omp parallel
class O {
class P {
// expected-error@+1 {{templates cannot be declared inside of a local
class}}
template <class T> class I {
void bar(bool b = true);
};
I<int> bar; // expected-error {{no template named 'I'}}
};
};
}
```
https://github.com/llvm/llvm-project/pull/216692
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits