Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic10.C
Jason Merrill 828ca2ed0b PR c++/84182 - ICE with captured lambda
PR c++/84181
	* pt.c (extract_locals_r, extract_local_specs): New.
	(tsubst_pack_expansion): Use them.

From-SVN: r257454
2018-02-07 11:02:50 -05:00

18 lines
280 B
C

// PR c++/84182
// { dg-do compile { target c++14 } }
template < typename ... T > void sink(T ...){}
template < typename >
void f(){
auto const lambda = [](int){ return 1; };
[lambda](auto ... i){
sink(lambda(i) ...);
}(1);
}
int main(){
f< int >();
}