================
@@ -140,18 +140,23 @@ namespace Template {
   template<typename T> auto [a, b, c] = n; // expected-error {{decomposition 
declaration template not supported}}
 }
 
+#define MYC C
+
 namespace Init {
-  void f() {
+  template<typename T> T f(T t) {
     int arr[1];
     struct S { int n; };
-    auto &[bad1]; // expected-error {{decomposition declaration '[bad1]' 
requires an initializer}}
+    auto &[bad1]; // expected-error {{decomposition declaration '[bad1]' 
requires an initializer}} expected-error {{expected initializer before ';'}}
----------------
zyn0217 wrote:

They look duplicate and are not great

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

Reply via email to