Re: C++ PATCH for c++/41933 (variadic lambda capture)

2013-09-16 Thread Adam Butcher
Excellent. This now supports the variadic generic lambda from the spec (albeit without the auto parameter pack) auto vglambda = [](auto printer) { // TODO: return [=](auto&& ... ts) // OK: ts is a function parameter pack return [=] (T&& ... ts) // OK: ts is a function par

C++ PATCH for c++/41933 (variadic lambda capture)

2013-09-15 Thread Jason Merrill
This patch fixes one of the few remaining holes in GCC's C++11 support: lambda capture of a variadic function parameter pack. The implementation involves introducing the internal notion of a FIELD_DECL pack, even though such a thing can not be written explicitly in C++11. Tested x86_64-pc-lin