[clang] [compiler-rt] [libcxx] [llvm] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 01:52:42 PDT 2024
carlosgalvezp wrote:
Please note: GCC is more strict; for std::memset, it requires the type to be trivial, not just trivially copyable:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107361
I haven't looked at the patch in detail but for consistency with GCC it should also support suppressing the warning by explictly casting the pointers to void* (maybe it's already in place).
https://github.com/llvm/llvm-project/pull/111434
More information about the cfe-commits
mailing list