blob: 01ef7c6e22083035f86f0d97dd8fe365612f378a [file] [log] [blame]
// PR c++/84036
// { dg-do compile { target c++14 } }
template < typename... T > void sink(T ...){}
template < typename T >
auto f(T){
auto l = [](auto ... i){
[i ...]{
sink(i...);
[=]{ sink(i ...); }();
}();
};
l();
l(42);
l(0.1,0.2);
}
int main(){
f(0);
}