[Bug c++/60033] [c++1y] ICE in retrieve_specialization while compiling recursive generic lambda

abutcher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 2 20:05:00 GMT 2014


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;
}



More information about the Gcc-bugs mailing list