This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85707] -Wclass-memaccess should excempt safe usage inside of a class and its friends


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The Position type is trivially-copyable, so IMHO shouldn't warn about uses of
memset/memcpy, but I'm not sure what the conditions for the warning are.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]