https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85831
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- 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