diff options
author | Jason Merrill <jason@redhat.com> | 2022-09-29 13:45:02 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-09-29 15:11:44 -0400 |
commit | 04d54b70fe2c3d69eb1d08f7212f01c8a972b701 (patch) | |
tree | ae7b9c097ebe383eceab5fbb65090ec52a0d66af /libgcc | |
parent | 13337ea9a1ccffc7d73a8ff87f5f186fd4d0d51c (diff) | |
download | gcc-04d54b70fe2c3d69eb1d08f7212f01c8a972b701.zip gcc-04d54b70fe2c3d69eb1d08f7212f01c8a972b701.tar.gz gcc-04d54b70fe2c3d69eb1d08f7212f01c8a972b701.tar.bz2 |
c++: fix triviality of class with unsatisfied op=
cxx20_pair is trivially copyable because it has a trivial copy constructor
and only a deleted copy assignment operator; the non-triviality of the
unsatisfied copy assignment overload is not considered.
gcc/cp/ChangeLog:
* class.cc (check_methods): Call constraints_satisfied_p.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/cond-triv3.C: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions