From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E81183858C78; Tue, 6 Feb 2024 16:43:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E81183858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707237808; bh=8uk6a7HumG+EaHPJ6qSydzeCvewfPq25dxgUwFa7kOw=; h=From:To:Subject:Date:From; b=YdDIN5w+pm+h+hmMMp3vwBZP+d49bH/h2N4Y3/HrUH88f5TNM6OQr6N/pjj8C+5ek UoVesPaDQYnKX7YgysISMPuVwYtqkXnnv3+EJa1ElNAwDpzPyzxNs5h0YHE4ADf6EN xUMMa9TXq7pgvnxz6Pjrxmeki/lIGJXERiOtmo8Y= From: "hewillk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113788] New: Deducing this is broken with structured binding Date: Tue, 06 Feb 2024 16:43:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hewillk at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113788 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 =3D {1, 2}; this auto& [a, b] =3D s; return b; } Thanks. https://godbolt.org/z/34xTee6sx=