https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87122
Bug ID: 87122
Summary: [8/9 Regression] ICE in tsubst_decomp_names
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
Starting with r256795 gcc ICEs on:
struct S { int a, b; };
template <bool>
void
foo ()
{
S x[2];
auto f = [](auto & y) { for (auto & [ u, v ] : y) ; };
f (x);
}
int
main ()
{
foo<true> ();
}
with -std=c++17, previously it has been incorrectly rejected.