leezu opened a new issue #17743: mshadow::bfloat::bf16_t triggers Wclass-memaccess URL: https://github.com/apache/incubator-mxnet/issues/17743 Warning triggered by GCC 8. @rongzha1 @pengzhao-intel `../include/mshadow/./tensor_cpu-inl.h:133:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class mshadow::bfloat::bf16_t’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]` ` memcpy(_dst.dptr_, _src.dptr_, sizeof(DType) * _dst.shape_.Size());` https://github.com/apache/incubator-mxnet/blob/c2e9a885683774f229eebdcf2699f51bc3afb3d9/3rdparty/mshadow/mshadow/bfloat.h#L111-L129
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services