PR c++/84851 - missing -Wclass-memaccess for a memcpy in a copy ctor with a non-trivi...
authorMartin Sebor <msebor@redhat.com>
Wed, 24 Oct 2018 18:06:14 +0000 (18:06 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 24 Oct 2018 18:06:14 +0000 (12:06 -0600)
commitfd85b88869cca061959582783d5ec75b0da8b1d7
tree1c99d2dbe268075a094a5b67daf1873d2a6f8ea8
parent313c39912b384687f8098bdf4614650a55ba939b
PR c++/84851 - missing -Wclass-memaccess for a memcpy in a copy ctor with a non-trivial member

gcc/cp/ChangeLog:

PR c++/84851
* call.c (maybe_warn_class_memaccess): Tighten up.

gcc/testsuite/ChangeLog:

PR c++/84851
* g++.dg/Wclass-memaccess-4.C: Remove XFAIL.

From-SVN: r265467
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/Wclass-memaccess-4.C