https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Even shorter: int a[1]; void f() { []() -> decltype(({auto&& [x] = a; 0;})) { return 0; }; } clang++ compiles it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Even shorter: int a[1]; void f() { []() -> decltype(({auto&& [x] = a; 0;})) { return 0; }; } clang++ compiles it.