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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
According to the docs, the warning really is concerned about whether the
destination type is trivial, and Foo isn't trivial (it has a non-trivial
default constructor).

But it doesn't warn about the std::memcpy(&dst, bytes.data(), sizeof(dst)) case
so there's obviously some other undocumented logic involved.

Reply via email to