[Bug c++/124456] ICE: tree check: expected tree_vec, have array_ref in tsubst_pack_expansion, at cp/pt.cc:14138
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 10:48:44 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124456
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly improved testcase (so that it doesn't deduce void result from baz and
doesn't complain about that on y initialization). Still ICEs.
struct A { int i; };
A
foo (auto...)
{
return A ();
}
int
bar (auto...)
{
return 0;
}
auto
baz (auto... t)
{
return [=] (auto... a) { auto [... k] = foo (t..., a...); return bar (k...);
};
}
auto x = baz (1);
auto y = x (1, 2, 3);
More information about the Gcc-bugs
mailing list