http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033
--- Comment #6 from Adam Butcher <abutcher at gcc dot gnu.org> --- A further reduced testcase: // PR c++/60033 // { dg-options -std=c++1y } template <typename... T> auto f(T&&... ts) { return sizeof...(ts); } template <typename... T> auto g(T&&... ts) { return [&] (int v) { return f(ts...); }; } int main() { return g(1,2,3,4)(5) == 4 ? 0 : 1; }