// PR c++/89761 // { dg-do compile { target c++17 } } template struct seq {}; template struct S { template constexpr static void call(Args&&...) {} }; template auto foo (seq, Args&& ...args) { return (S::call(args), ...); } void bar() { foo(seq<0,1,2>{}, 1,2,3); }