https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117046
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Ever confirmed|0 |1
Last reconfirmed| |2024-10-09
Status|UNCONFIRMED |NEW
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The full diagnostic is:
mem.cc:13:16: warning: 'void* memcpy(void*, const void*, size_t)' copying an
object of non-trivial type 'struct Foo' from an array of 'struct
std::array<unsigned char, 4>' [-Wclass-memaccess]
The "from an array" part is odd too, since that's a std::array not an actual
array.