[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2021-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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(, data, sizeof(std::uint32_t));

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-09 Thread D.Bahadir at GMX dot de
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

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-09 Thread redi at gcc dot gnu.org
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)

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-09 Thread D.Bahadir at GMX dot de
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

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-09 Thread redi at gcc dot gnu.org
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

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-08 Thread D.Bahadir at GMX dot de
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

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-08 Thread D.Bahadir at GMX dot de
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

[Bug c++/94082] __builtin_memcpy in constexpr context should compile

2020-03-07 Thread fche at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94082 Frank Ch. Eigler changed: What|Removed |Added CC||fche at redhat dot com test