diff options
author | Martin Sebor <msebor@redhat.com> | 2020-05-19 12:46:37 -0600 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:48 -0300 |
commit | 52a8d47167bccecea0b2a451b30ef62167543c1d (patch) | |
tree | dc9b7b61aa783dc50eb84a6fcb28d2d795a99bfc /gcc/tree-inline.c | |
parent | f8f98451882db18788afcc1155db757496b76789 (diff) | |
download | gcc-52a8d47167bccecea0b2a451b30ef62167543c1d.zip gcc-52a8d47167bccecea0b2a451b30ef62167543c1d.tar.gz gcc-52a8d47167bccecea0b2a451b30ef62167543c1d.tar.bz2 |
PR c++/94923 - False positive -Wclass-memaccess with trivially copyable std::optional
gcc/cp/ChangeLog:
PR c++/94923
* call.c ((maybe_warn_class_memaccess): Use is_byte_access_type.
* cp-tree.h (is_dummy_object): Return bool.
(is_byte_access_type): Declare new function.
* tree.c (is_dummy_object): Return bool.
(is_byte_access_type): Define new function.
gcc/testsuite/ChangeLog:
PR c++/94923
* g++.dg/Wclass-memaccess.C: Add tests for std::byte.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions