From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 07E6C3858C53; Mon, 15 Apr 2024 18:29:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07E6C3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713205790; bh=LyzCKTlRkbui8DPDhe+Sw0uP2ov1labyk+pWVT+48kY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eGExlXphiBGpgrFv8WjSOMQzDZ603/x9nHZNtgrZ7O20amo5qA64EDTtv3SmyfVw7 RZwIuRX/Pcur5GbmSKkMsxzpYbqCT+GMJ5dh0rMO1c+AMjCoiDpU4Q/kDJi3kYSPHw kF4KdtzRa8VA4hRM8VAWFSdEtGRkQFpDpnN0LXRs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113386] [C++23] std::pair comparison operators should be transparent, but are not in libstdc++ Date: Mon, 15 Apr 2024 18:29:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi 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=3D113386 --- Comment #10 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2a0c083558b4ac6609692294df7a388cf4468711 commit r14-9979-g2a0c083558b4ac6609692294df7a388cf4468711 Author: Jonathan Wakely Date: Mon Jan 15 14:47:52 2024 +0000 libstdc++: Heterogeneous std::pair comparisons [PR113386] I'm only treating this as a DR for C++20 for now, because it's less work and only requires changes to operator=3D=3D and operator<=3D>. To do th= is for older standards would require changes to the six relational operators used pre-C++20. libstdc++-v3/ChangeLog: PR libstdc++/113386 * include/bits/stl_pair.h (operator=3D=3D, operator<=3D>): Supp= ort heterogeneous comparisons, as per LWG 3865. * testsuite/20_util/pair/comparison_operators/lwg3865.cc: New test.=