aboutsummaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2018-03-21 15:14:02 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2018-03-21 09:14:02 -0600
commite65fc7c572594c8c4e38edb56fd6a6eb401fd4b4 (patch)
tree2fc52168e184bdb48ef7c4dadd3a4d4d7033f535 /gcc/mode-switching.c
parent2a80d3ae14f6f823e28637fd28b5808a6e4aa5ba (diff)
downloadgcc-e65fc7c572594c8c4e38edb56fd6a6eb401fd4b4.zip
gcc-e65fc7c572594c8c4e38edb56fd6a6eb401fd4b4.tar.gz
gcc-e65fc7c572594c8c4e38edb56fd6a6eb401fd4b4.tar.bz2
PR c++/84850 - -Wclass-memaccess on a memcpy in a copy assignment operator with no nontrivial bases or members
gcc/cp/ChangeLog: PR c++/84850 * call.c (first_non_public_field): New template and function. (first_non_trivial_field): New function. (maybe_warn_class_memaccess): Call them. gcc/testsuite/ChangeLog: PR c++/84850 * g++.dg/Wclass-memaccess-3.C: New test. * g++.dg/Wclass-memaccess-4.C: New test. From-SVN: r258719
Diffstat (limited to 'gcc/mode-switching.c')
0 files changed, 0 insertions, 0 deletions