From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5F413858C53; Fri, 20 Jan 2023 00:09:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5F413858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674173392; bh=asqbqXFncvmS1DJ4ovuwIXlOSoCaqgt0iUdbFxXWdIQ=; h=From:To:Subject:Date:From; b=MdNEOunwKNIvNq8xhVbRclYNlyOhxNI1LZq2BbZjv8WCWgBSsAy3cXLWFa2AqaUtG 9BDNnCMQJ6pWU7TkUstaQDmVbmIPIrQTrb51+SkOG8Gvh/4JYrSRM9uF4Iut41j0+l SpTaX3jAcFVzi4+LiFjG9mc2lls88qZkzUgVSxZc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108474] New: static structured binding undefined reference Date: Fri, 20 Jan 2023 00:09:52 +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: 13.0 X-Bugzilla-Keywords: link-failure, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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 keywords 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=3D108474 Bug ID: 108474 Summary: static structured binding undefined reference Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: link-failure, wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Take this c++20 (-std=3Dc++20): ``` struct t { int i, j; }; t y; static auto [i, j] =3D y; int &r =3D i; int s =3D i; int *t =3D &i; int main() {} ``` This fails in a similar way as PR 53932 but this is for structued bindings rather than static anonymous unions.=