[Bug c++/80370] [7 Regression] ICE when using structured bindings and nested generic lambdas (tsubst_decomp_names)
vittorio.romeo at outlook dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 10 10:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80370
--- Comment #4 from Vittorio Romeo <vittorio.romeo at outlook dot com> ---
Even shorter:
template <typename> struct tuple_size { static constexpr int value = 1; };
template <long, typename> struct tuple_element { typedef int type; };
template <typename> struct tuple {};
template <int, typename T> int get(T);
int
main ()
{
[](auto) { [](tuple<int> b) { auto [c] = b; }; }(0);
}
More information about the Gcc-bugs
mailing list