Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic14.C
Jason Merrill 4912defbcc PR c++/84368 - wrong error with local variable in variadic lambda.
* pt.c (tsubst_pack_expansion): Fix handling of non-packs in
	local_specializations.

From-SVN: r257699
2018-02-15 13:15:32 -05:00

18 lines
292 B
C

// PR c++/84368
// { dg-do compile { target c++14 } }
template < typename ... T >
void sink(T ...){}
template < typename ... T >
void foo(T ... v){
[](auto ... v){
auto bar = [](auto, auto){ return 0; };
sink(bar(v, T{}) ...);
}(v ...);
}
int main(){
foo(0);
}