[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

mattreecebentley at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 19 22:35:00 GMT 2018


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

--- Comment #22 from Matt Bentley <mattreecebentley at gmail dot com> ---
(In reply to Jonathan Wakely from comment #21)
> Surely static_cast is good enough, and doesn't rule out making the function
> constexpr?

It may well be, how does reinterpret_cast cause constexpr to fail, given that
it's also compile-time?


More information about the Gcc-bugs mailing list