Martin Sebor <msebor at gcc dot> changed:

           What    |Removed                     |Added
         Depends on|                            |84851

--- Comment #2 from Martin Sebor <msebor at gcc dot> ---
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:
[Bug 84851] missing -Wclass-memaccess for a memcpy in a copy ctor with a
non-trivial member

Reply via email to