From patchwork Thu Sep 1 14:48:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 900 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp288704wro; Thu, 1 Sep 2022 07:49:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cW8SFkssKX7WfDgkwsiw04XlO3RaAGUxpooMlq68qm1J5Q0B49asaFd3mhVvAKIEBuXmE X-Received: by 2002:a17:907:2bf9:b0:73d:dd00:9ce8 with SMTP id gv57-20020a1709072bf900b0073ddd009ce8mr21985247ejc.151.1662043787929; Thu, 01 Sep 2022 07:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662043787; cv=none; d=google.com; s=arc-20160816; b=phMoxMh7MnIxNUvdgKyg/cH582nYD+jAnXfY56ayDMYw9OMnB68kqTMxSQwVQG545e OYtSbQr5KSwqum24MWIRLjNWuLrcjEMy6Sg62pQB6qdr7X1GK1AqbFLqTpVhq4hagnUM WifOyemv3Pd4HixVbVMbfid4Et3AC4/sW/wgiB0ySkUnB/zOHmEF4zIpy8EAHxlhNdGg yb13aqocnic549sLGt8tbYQoyPRHOgxH6iCZJvsUAdYiY5cyEZDeChF72OGK/u3aWgh1 BDBoY9NhxfqeFnjP8xXpWHaV1y3NnMtT5UjCvLsWzKRmoJQjphGj9ELk+rbXt2skox/3 xYHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Vkx6nQt7hgwPVsq3PLt9tXSt7ZfBdQc/cNeDUsBdlfo=; b=KKeX44+xW83MXD5gSkiim42ZIjp/9ErBsuhNLYxs49JFIrNFKLA+pXL/Rj6RA1692S dQPU/Kd6dShmWWw3Rn5gnitPLVPUPnB5nDEPCX6rz1NxKcIX/RHSG5/YnCR3wsVRqOnM 56UTyuWRe8MRNnHwe6FmR28NDobl0zj6X/D03lYuMTChEFSAJe9oq+r5Prrzd2MRqKNx q4JAZFPYlTdTzrClePtt3rDaYi4PCRYHGJ2kfHHLkd5muLTs/FCfwX863tUNuam2mhRl T45MMPlEgPNEln5YogT8i1EkACsUX9l0d7YKOyNIXosKWhmMQDJUhs0qWRW7gDEw0Sj2 fwlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="CL/ih0BP"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id nc29-20020a1709071c1d00b0072b33152db1si15266015ejc.858.2022.09.01.07.49.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 07:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="CL/ih0BP"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F39F3858439 for ; Thu, 1 Sep 2022 14:49:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F39F3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662043786; bh=Vkx6nQt7hgwPVsq3PLt9tXSt7ZfBdQc/cNeDUsBdlfo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=CL/ih0BPVKC98NsvbCBQn5/W/dLb8hJ4xUuM/riWc1TCCejcfN6Ot62rDmP9U0bH0 pyG8ifHovQcGzdimfLsPzY9yk1VhV6048TPA8AkUf4Gbl2juv1k4qgpKO0MS6Hbmio YfsPCklM6LTuVQiMl3MN4TutFgzkpdMZjAQMdJbM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id EBA233858291 for ; Thu, 1 Sep 2022 14:49:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EBA233858291 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-650-x5QAVufJM4SiSSwDKjCjrw-1; Thu, 01 Sep 2022 10:48:59 -0400 X-MC-Unique: x5QAVufJM4SiSSwDKjCjrw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 497583814951; Thu, 1 Sep 2022 14:48:59 +0000 (UTC) Received: from localhost (unknown [10.33.36.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12A552026D4C; Thu, 1 Sep 2022 14:48:58 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove FIXME for ICE with remove_cvref_t in requires-expression Date: Thu, 1 Sep 2022 15:48:58 +0100 Message-Id: <20220901144858.322880-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742779227220539302?= X-GMAIL-MSGID: =?utf-8?q?1742779227220539302?= Tested powerpc64le-linux, pushed to trunk. -- >8 -- PR c++/99968 is fixed since GCC 12.1 so we can remove the workaround. libstdc++-v3/ChangeLog: * include/std/type_traits (is_scoped_enum): Remove workaround. --- libstdc++-v3/include/std/type_traits | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 5984442c0aa..5b8314f24fd 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -3534,20 +3534,11 @@ template template requires __is_enum(_Tp) - && requires(_Tp __t) { __t = __t; } // fails if incomplete + && requires(remove_cv_t<_Tp> __t) { __t = __t; } // fails if incomplete struct is_scoped_enum<_Tp> : bool_constant { }; - // FIXME remove this partial specialization and use remove_cv_t<_Tp> above - // when PR c++/99968 is fixed. - template - requires __is_enum(_Tp) - && requires(_Tp __t) { __t = __t; } // fails if incomplete - struct is_scoped_enum - : bool_constant - { }; - /// @ingroup variable_templates /// @since C++23 template