diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-07-20 16:51:44 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-07-20 23:38:48 +0100 |
commit | 87a9bfe86d8a87d09de5d60e430d14bfa6c816f0 (patch) | |
tree | 52a0d2c1898c82e3c8985245dac64c98dd3394fb /gcc | |
parent | 56c999860bbbb2fd5091ba0985e2e5eaa90c6478 (diff) | |
download | gcc-87a9bfe86d8a87d09de5d60e430d14bfa6c816f0.zip gcc-87a9bfe86d8a87d09de5d60e430d14bfa6c816f0.tar.gz gcc-87a9bfe86d8a87d09de5d60e430d14bfa6c816f0.tar.bz2 |
libstdc++: Fix std::common_iterator triviality [PR100823]
This fixes the remaining problem reported in the PR, that the special
members should be trivial. This can be done by constraining the
non-trivial versions and adding defaulted overloads that will be used
when the union members are trivial.
Making these members trivial alters the argument passing ABI and so
isn't suitable for backporting to release branches.
libstdc++-v3/ChangeLog:
PR libstdc++/100823
* include/bits/stl_iterator.h (common_iterator): Define
destructor, copy constructor and move constructor as trivial
when the underlying types allow.
* testsuite/24_iterators/common_iterator/100823.cc: Check
triviality of special members.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions