================
@@ -136,7 +136,7 @@ namespace MultiDeclarator {
 
 namespace Template {
   int n[3];
-  // FIXME: There's no actual rule against this...
+  // Structured binding template is not allowed.
   template<typename T> auto [a, b, c] = n; // expected-error {{decomposition 
declaration template not supported}}
----------------
cor3ntin wrote:

While we are there, can we change the diagnostic to `decomposition declaration 
cannot be a template` or something like that, not to give the impression it's a 
clang limitation?


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

Reply via email to