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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |84851

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bug 84851 shows that the exemption for copy ctors is overly simplistic and
broad.  Using the same mechanism for copy assignment would not be appropriate
because it would compromise the warning and prevent it from detecting some
undefined cases.  Adding an exemption for copy assignment will require checking
all bases and members to make sure they are trivial.  That makes the solution
for this bug dependent on pr84851.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84851
[Bug 84851] missing -Wclass-memaccess for a memcpy in a copy ctor with a
non-trivial member

Reply via email to