================ @@ -160,3 +160,22 @@ namespace GH88929 { using E = P...[0]; // expected-error {{unknown type name 'P'}} \ // expected-error {{expected ';' after alias declaration}} } + +namespace GH88925 { +template <typename...> struct S {}; + +template <int...> struct sequence {}; + +template <typename... Args, int... indices> auto f(sequence<indices...>) { + return S<Args...[indices]...>(); // #use +} + ---------------- zyn0217 wrote:
Oops, yeah, good catch! Honestly, I have tried one similar example (with a fold expression) but had no luck: ```cpp template <auto... Args, int... indices> auto f(sequence<indices...>) { return (Args...[indices] + ...); } ``` Let me see what's happening here. https://github.com/llvm/llvm-project/pull/90195 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits