From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4724E3858028; Mon, 14 Aug 2023 17:35:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4724E3858028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692034525; bh=QAPjrHTiY9k+dsT9gXLke/Ld7zEWSW4SSr07I58wvZM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ld387A7Q/PmIzMmbt6ejqWzN5S7dNQRP/g9l+bxEnZqW0EXWnHSWD171DpIf0W0w0 AoBYshIxmibdvixtQfqO5WE3OIzamBtPfLDGT/AgPZxuByhxyvAvRuP04Vd5f22YDB sJAPkTTB1sTDSPXnTvciWD1FksJKYECZwm8FTVtQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110216] tuple_size requirements for structured binding has not been updated after DR 2386 Date: Mon, 14 Aug 2023 17:35:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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=3D110216 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:1a43af04dd62b80f45700f94ed241347263ed773 commit r14-3204-g1a43af04dd62b80f45700f94ed241347263ed773 Author: gnaggnoyil Date: Sat Aug 12 16:16:52 2023 +0800 c++: follow DR 2386 and update implementation of get_tuple_size [PR1102= 16] DR 2386 updated the tuple_size requirements for structured binding and it now requires tuple_size to be considered only if std::tuple_size names a complete class type with member value. GCC before this patch does not follow the updated requrements, and this patch is intended to implement it. (jason) Accepting pseudonym sign-off because a change this small is not legally significant for copyright. DR 2386 PR c++/110216 gcc/cp/ChangeLog: * decl.cc (get_tuple_size): Update implementation for DR 2386. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/decomp10.C: Update expected error for DR 2386. * g++.dg/cpp1z/pr110216.C: New test. Signed-off-by: gnaggnoyil Reviewed-by: Jason Merrill =