forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR c++/84850 - -Wclass-memaccess on a memcpy in a copy assignment ope…
…rator 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258719 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
msebor
committed
Mar 21, 2018
1 parent
0610f8d
commit 55beab0
Showing
5 changed files
with
405 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
2018-03-21 Martin Sebor <[email protected]> | ||
|
||
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. | ||
|
||
2018-03-21 David Malcolm <[email protected]> | ||
|
||
PR c++/84892 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2018-03-21 Martin Sebor <[email protected]> | ||
|
||
PR c++/84850 | ||
* g++.dg/Wclass-memaccess-3.C: New test. | ||
* g++.dg/Wclass-memaccess-4.C: New test. | ||
|
||
2018-03-21 David Malcolm <[email protected]> | ||
|
||
PR c++/84892 | ||
|
Oops, something went wrong.