Some libstdc++ fixes for -Wdeprecated-copy.
commit66d1168c6341cefd12f8b3bddafd0287537e7e3d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2018 20:02:14 +0000 (18 20:02 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2018 20:02:14 +0000 (18 20:02 +0000)
tree06ecc73f75acf598f7943b6ed86b6357e68cbdba
parent3455e5fa0b22bce132672dd624192bef168ce586
Some libstdc++ fixes for -Wdeprecated-copy.

* include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
for conversion to const_iterator.  Add defaulted copy ops.
* libsupc++/new (bad_alloc): Add defaulted copy ops.
* libsupc++/exception.h (exception): Add defaulted copy ops.
* include/std/system_error (system_error): Add defaulted copy ops.
* include/std/stdexcept (domain_error, invalid_argument)
(length_error, out_of_range, range_error, overflow_error)
(underflow_error): Add defaulted copy ops.
* include/bits/stl_iterator.h (reverse_iterator): Add defaulted
copy assignment.
* include/bits/allocator.h (allocator): Add defaulted copy assignment.
* include/ext/throw_allocator.h (condition_base): Add defaulted
default and copy ctor and copy assignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260380 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/g++.dg/cpp0x/Wattributes1.C
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/ext/throw_allocator.h
libstdc++-v3/include/std/stdexcept
libstdc++-v3/include/std/system_error
libstdc++-v3/libsupc++/exception.h
libstdc++-v3/libsupc++/new