PR c++/92001 - missing -Wclass-memaccess with array as first argument to memset
authorMartin Sebor <msebor@redhat.com>
Tue, 8 Oct 2019 22:12:54 +0000 (22:12 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 8 Oct 2019 22:12:54 +0000 (16:12 -0600)
commitd470060d06c45592514858b0a4c87bd71cd91c9b
tree3fbcdf9f9bc970fb4a93744bba6db18b06581974
parent0eeb34b29937338a8087216c49d3837b69107238
PR c++/92001 - missing -Wclass-memaccess with array as first argument to memset

gcc/cp/ChangeLog:

PR c++/92001
* call.c (maybe_warn_class_memaccess): Handle arrays.

gcc/testsuite/ChangeLog:

PR c++/92001
* g++.dg/Wclass-memaccess-5.C: New test.

From-SVN: r276725
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/Wclass-memaccess-5.C [new file with mode: 0644]