================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+void foo() {
+  struct Local {
+    template <typename T> // expected-error {{member templates are not allowed 
inside local classes}}
----------------
ojhunt wrote:

Given the original issue, there should be a test for a function with auto 
parameters, etc - that will let us verify the error message is good/clear for 
the auto case as well

https://github.com/llvm/llvm-project/pull/149781
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to