From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 8B1483858D1E; Thu, 1 Sep 2022 14:48:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B1483858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662043724; bh=S/WQo5FqMHIIxJlDkAWpumBpCAMnsPFnAKSN89C/lSQ=; h=From:To:Subject:Date:From; b=J3u1VGW+7xAcagwiEpjArVv9QTnFf8JUnRNO+6DiJR4KmQKY4ephhR7poUd1zDXZG uCWnEQaE21kdUPDwLOsEcBhXiMHU0egHXSDTd7q0/rk62qlF9rOeghh25n1iDGL85t ruDGQnEqd9Z5CTE/Nl2PW/zXs9MUQ5DeV9aRSXGg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-2344] libstdc++: Remove FIXME for ICE with remove_cvref_t in requires-expression X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 0cb8d96157a95b7619ef1ccf28051181415fe989 X-Git-Newrev: 37ff51a98583e63fb9afe83cf9f4351760149028 Message-Id: <20220901144844.8B1483858D1E@sourceware.org> Date: Thu, 1 Sep 2022 14:48:44 +0000 (GMT) List-Id: https://gcc.gnu.org/g:37ff51a98583e63fb9afe83cf9f4351760149028 commit r13-2344-g37ff51a98583e63fb9afe83cf9f4351760149028 Author: Jonathan Wakely Date: Thu Sep 1 11:52:52 2022 +0100 libstdc++: Remove FIXME for ICE with remove_cvref_t in requires-expression 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. Diff: --- 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