This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r262456 - in /trunk/libstdc++-v3: ChangeLog con...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 05 Jul 2018 21:29:51 -0000
- Subject: r262456 - in /trunk/libstdc++-v3: ChangeLog con...
Author: redi
Date: Thu Jul 5 21:29:51 2018
New Revision: 262456
URL: https://gcc.gnu.org/viewcvs?rev=262456&root=gcc&view=rev
Log:
PR libstdc++/85831 define move constructors and operators for exceptions
PR libstdc++/85831
* config/abi/pre/gnu.ver: Export move constructors and move
assignment operators for std::logic_error and std::runtime_error.
* include/std/stdexcept: Use _GLIBCXX_NOTHROW instead of
_GLIBCXX_USE_NOEXCEPT.
(logic_error, runtime_error): Declare move constructors and move
assignment operators. When not declared already, define copy
constructors and copy assignment operators as explicit-defaulted.
(domain_error, invalid_argument, length_error, out_of_range)
(overflow_error, underflow_error): Define move constructors and move
assignment operators as explicitly-defaulted.
* libsupc++/exception.h (exception): Likewise.
* src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Define
move constructors and move assignment operators as defaulted.
* testsuite/19_diagnostics/stdexcept.cc: Check that constructors and
assignment operators are defined.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/config/abi/pre/gnu.ver
trunk/libstdc++-v3/include/std/stdexcept
trunk/libstdc++-v3/libsupc++/exception.h
trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc
trunk/libstdc++-v3/testsuite/19_diagnostics/stdexcept.cc