From: Jonathan Wakely Date: Thu, 1 Sep 2022 10:52:52 +0000 (+0100) Subject: libstdc++: Remove FIXME for ICE with remove_cvref_t in requires-expression X-Git-Tag: basepoints/gcc-14~4863 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37ff51a98583e63fb9afe83cf9f4351760149028;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 5984442c0aa8..5b8314f24fd7 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