[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:53:49 GMT 2022


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is slightly more reduced:
constexpr bool use_func_v{};
struct func_obj
{
    template<class T> requires use_func_v
    void operator()(T);
};
template <typename t, typename ...args>
concept tt = requires {t{}(args{}...);};
constexpr bool bar{tt<func_obj, char>};


More information about the Gcc-bugs mailing list