https://github.com/ArcsinX commented:

Sorry, the example I cited 
[here](https://github.com/llvm/llvm-project/pull/228601#discussion_r4172437701) 
is actually C++29, not C++26 as I stated, and clang issues a warning for it. 
This applies to the test in this PR as well.
- C++26: pack indexing for types, e.g. `template <typename... T>` => `T...[0]`
- C++29: pack indexing for template names, e.g. `template <template <typename> 
class... T>` => `T...[0]`

BTW, maybe we can move the pack indexing tests into a separate test rather than 
keeping them in `ClassTemplate` test? Given that there will likely be more 
tests, since as you said, not all pack indexing cases are working yet.



https://github.com/llvm/llvm-project/pull/228996
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to