https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #7 from Andrew Pinski ---
clang produces:
:8:5: note: cannot constant evaluate 'memcpy' from object of type
'unsigned char' to object of type 'std::uint32_t' (aka 'unsigned int')
__builtin_memcpy(&num, data, sizeof(std::uint32_t))
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #6 from Deniz Bahadir ---
(In reply to Jonathan Wakely from comment #5)
>
> It definitely doesn't mean __builtin_memcpy has to be used. It means "we
> don't want to change std::memcpy, implementations must use some other method
> to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #5 from Jonathan Wakely ---
(In reply to Deniz Bahadir from comment #4)
> (In reply to Jonathan Wakely from comment #3)
> > (In reply to Deniz Bahadir from comment #1)
> > > Reading P0202 (wg21.link/p0202) (which made it into C++20) i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #4 from Deniz Bahadir ---
(In reply to Jonathan Wakely from comment #3)
> (In reply to Deniz Bahadir from comment #1)
> > Reading P0202 (wg21.link/p0202) (which made it into C++20) it sounds as if
> > `__builtin_memcpy` should be usab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #3 from Jonathan Wakely ---
(In reply to Deniz Bahadir from comment #1)
> Reading P0202 (wg21.link/p0202) (which made it into C++20) it sounds as if
> `__builtin_memcpy` should be usable from a `constexpr` context.
Why? std::memcpy i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #2 from Deniz Bahadir ---
Here is a link to Stack Overflow where I originally asked a question about this
behavior: https://stackoverflow.com/q/60572199/3115457
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
--- Comment #1 from Deniz Bahadir ---
Not: As due to the sourceware/gcc move it seems my original bug-report comment
got lost, I am here re-posting it.
Reading P0202 (wg21.link/p0202) (which made it into C++20) it sounds as if
`__builtin_memcpy
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082
Frank Ch. Eigler changed:
What|Removed |Added
CC||fche at redhat dot com
test