https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113788
Bug ID: 113788
Summary: Deducing this is broken with structured binding
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
GCC accepts the following:
struct S {
int a, b;
};
int main() {
S s = {1, 2};
this auto& [a, b] = s;
return b;
}
Thanks.
https://godbolt.org/z/34xTee6sx
