// PR c++/106024 // { dg-do compile { target c++20 } } void sink(...); template void f() { sink ([] (int...) { return 1; } // { dg-warning "omission of ',' before varargs '...' is deprecated" "" { target c++26 } } .operator()(args...)...); // { dg-warning "-Wmissing-template-keyword" } } // { dg-prune-output {expected '\)'} } int main() { f<1,2,3>(); }