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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-05-03
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to rhalbersma from comment #0)
> std::fill_n is constexpr in C++20 but when writing unsigned chars it
> delegates to __builtin_memset which is not constexpr:

No, it fails before reaching the call to __builtin_memset, when calling this
function which isn't constexpr:


  template<typename _Tp>
    inline typename
    __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type
    __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c)

Reply via email to