From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116504 invoked by alias); 20 Feb 2020 11:32:53 -0000 Mailing-List: contact libstdc++-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libstdc++-owner@gcc.gnu.org Received: (qmail 116495 invoked by uid 89); 20 Feb 2020 11:32:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Feb 2020 11:32:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582198370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Kdu1MZKpTTT/gc9iCGdqhB3xgHKTZqVnqXNWWj5N8lQ=; b=hSUteFqShB1TNOS9Hvt7jBPR5f+sx7u+1LHB6fGpomUx2x9Pi8C7lGh6YsWneAIesJKdsP gPWVlSCJRIxrB/dhUckVBu2WWPKhoUaZzb65dV43QazQkFqJkmm1ChMWj+1TRyBIPrcvve yVlDVyiHkzGfhf8rXe+hHDcP5fAxlB4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-411-B3HmVvRvMu2n5esYXX_8gg-1; Thu, 20 Feb 2020 06:32:47 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 89C93107ACC9; Thu, 20 Feb 2020 11:32:46 +0000 (UTC) Received: from localhost (unknown [10.33.36.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 35AF891820; Thu, 20 Feb 2020 11:32:46 +0000 (UTC) Date: Thu, 20 Feb 2020 11:32:00 -0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] Remove std::type_info::operator!= for C++20 Message-ID: <20200220113245.GW9441@redhat.com> References: <20200220113150.GA1843957@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200220113150.GA1843957@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="lt3WynA+XK9Fj6D4" Content-Disposition: inline X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00134.txt.bz2 --lt3WynA+XK9Fj6D4 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 91 This is an even smaller part of P1614R2. Tested powerpc64le-linux, committed to master. --lt3WynA+XK9Fj6D4 Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: quoted-printable Content-length: 891 commit 20fa41e61fd2d2839ca47e0dfac6976c552ab648 Author: Jonathan Wakely Date: Fri Feb 7 20:50:00 2020 +0000 libstdc++: Remove std::type_info::operator!=3D for C++20 =20=20=20=20 This function can be synthesized by the compiler now. =20=20=20=20 * libsupc++/typeinfo (type_info::operator!=3D): Remove for C++2= 0. diff --git a/libstdc++-v3/libsupc++/typeinfo b/libstdc++-v3/libsupc++/typei= nfo index 0f523d75b55..5a64e9ff092 100644 --- a/libstdc++-v3/libsupc++/typeinfo +++ b/libstdc++-v3/libsupc++/typeinfo @@ -133,8 +133,11 @@ namespace std { return __name =3D=3D __arg.__name; } #endif #endif + +#if __cpp_impl_three_way_comparison < 201907L bool operator!=3D(const type_info& __arg) const _GLIBCXX_NOEXCEPT { return !operator=3D=3D(__arg); } +#endif =20 #if __cplusplus >=3D 201103L size_t hash_code() const noexcept --lt3WynA+XK9Fj6D4--