https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115586
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-06-22
Summary|name-independent |c++26: with 2 or more
|declarations causing an |name-independent
|internal compiler error |declarations (anonymous
|(c++26) |structure bindings) with
| |for loop
CC| |pinskia at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code
Ever confirmed|0 |1
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Reduced testcase:
```
struct f
{
int a;
int b;
int c;
};
int main() {
f in1[4];
//auto [_, _, b] = in1[0];
for (auto [_, _, a] : in1) { }
}
```
Note if uncomment the other name-independent declaration, we get a slightly
different ICE:
<source>:12:34: internal compiler error: in pop_local_binding, at
cp/name-lookup.cc:2655