================
@@ -253,6 +254,19 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
     if (Type.isNull())
       return false;
 
+    // C++ [cpp23.dcl.dcl-2]:
+    //   Previously, T...[n] would declare a pack of function parameters.
+    //   T...[n] is now a pack-index-specifier. [...] Valid C++ 2023 code that
+    //   declares a pack of parameters without specifying a declarator-id
+    //   becomes ill-formed.
+    //
+    // However, we still avoid parsing them as pack expansions because this is 
a
+    // rare use case of packs, despite being partway non-conforming, to ensure
+    // semantic consistency given that we have backported this feature.
----------------
cor3ntin wrote:

This comment look inconsistent with what you are doing 

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

Reply via email to