[Bug c++/85209] [8 Regression] ICE with lambda and structured binding
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 5 12:50:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85209
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Valid alternative to the testcase that also ICEs:
struct S { int a; } s;
template <int>
void
foo ()
{
auto [a] = []{ return s; } ();
};
void
bar ()
{
foo<0> ();
}
More information about the Gcc-bugs
mailing list