[Bug c++/104410] [11/12 Regression] Internal error using default-initialized constexpr bool in requires clause

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 6 23:39:57 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104410

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-02-06

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Self contained example (without the include):
template<class T>
constexpr bool use_func_v{};
struct func_obj
{
    template<class T>
        requires use_func_v<T>
    void operator()(T, T) const
    {}
};

template <typename t, typename ...args>
concept tt = requires {t{}(args{}...);};

constexpr bool bar{tt<func_obj, char, char>};


More information about the Gcc-bugs mailing list