PR c++/81169 - -Wclass-memaccess illegitimate warning related to volatile
authorMartin Sebor <msebor@redhat.com>
Mon, 26 Jun 2017 17:19:15 +0000 (17:19 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 26 Jun 2017 17:19:15 +0000 (11:19 -0600)
commit4b377e01ce6b56e0ec0276596e47bfbaacf97aa6
treef40e76f1d3078a7edf198e4176f6e27220c875c4
parentb269e8998d5cc47d010d915aba548fa0ae2d8bf8
PR c++/81169 - -Wclass-memaccess illegitimate warning related to volatile

gcc/cp/ChangeLog:

PR c++/81169
* call.c (maybe_warn_class_memaccess): Preserve explicit conversions
to detect casting away cv-qualifiers.

gcc/testsuite/ChangeLog:

PR c++/81169
* g++.dg/Wclass-memaccess-2.C: New test.

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