Some libstdc++ fixes for -Wdeprecated-copy.
authorJason Merrill <jason@redhat.com>
Fri, 18 May 2018 20:02:14 +0000 (16:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 18 May 2018 20:02:14 +0000 (16:02 -0400)
commitf07c22376848e9923aa8455d2c0a059d9d0e01d5
tree06ecc73f75acf598f7943b6ed86b6357e68cbdba
parent1261e77e53cb834ad5aedfe185acd37a2511292a
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.

From-SVN: r260380
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