aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-05-19 12:46:37 -0600
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:03:48 -0300
commit52a8d47167bccecea0b2a451b30ef62167543c1d (patch)
treedc9b7b61aa783dc50eb84a6fcb28d2d795a99bfc /gcc/tree-inline.c
parentf8f98451882db18788afcc1155db757496b76789 (diff)
downloadgcc-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