From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A8A7385DC10; Tue, 14 Apr 2020 20:55:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A8A7385DC10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586897709; bh=7wC/WDe2Gr62Iu79xGZgmSjNCu4qPYtabJ9FV2n6PYM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hVPb1ndzjjILH10F3hOo1tyLLJueVvh0WumNJzpq2uleCuolT6iLXRvaiMGa7vSeV Gzutz9eZwWgdKyo2jvjMqWv07RfyV0F2riARS+3WjroOpOhzho8XJ3nPQWpqeitX/t 3XjOwf9f4OyQCt8WT71DLT56fQYEsEqCsW1N/YhA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/94562] C++20: std::shared_ptr{} <=> nullptr ill-formed Date: Tue, 14 Apr 2020 20:55:09 +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: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2020 20:55:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94562 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:f5fa62ed19a1c85cda920bbe05eb075d8f2a0b42 commit r10-7725-gf5fa62ed19a1c85cda920bbe05eb075d8f2a0b42 Author: Jonathan Wakely Date: Tue Apr 14 21:54:55 2020 +0100 libstdc++: Add comparison operators to std::shared_ptr (PR 94562) This also implements the proposed resolution to LWG issue 3247, so that the ill-formed <=3D> expression with nullptr is not used. PR libstdc++/94562 * include/bits/shared_ptr.h (operator<=3D>): Define for C++20. * include/bits/shared_ptr_base.h (operator<=3D>): Likewise. * include/bits/unique_ptr.h (operator<=3D>): Add inline specifi= er. * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc: New tes= t. * testsuite/20_util/shared_ptr/comparison/less.cc: Do not expect std::less to be used when comparing std::shared_ptr obje= cts in C++20.=