diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-07-05 22:29:51 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-07-05 22:29:51 +0100 |
commit | d04dbb8ad3b0964c6dbe1989ff0035634d09241d (patch) | |
tree | 3c6d2ba152ada4df1eaf32360d28c94b3d60b014 /libstdc++-v3/config/abi/pre/gnu.ver | |
parent | 1c1d2d8ca755341f69e945aa2df1a0f74d02abd8 (diff) | |
download | gcc-d04dbb8ad3b0964c6dbe1989ff0035634d09241d.zip gcc-d04dbb8ad3b0964c6dbe1989ff0035634d09241d.tar.gz gcc-d04dbb8ad3b0964c6dbe1989ff0035634d09241d.tar.bz2 |
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.
From-SVN: r262456
Diffstat (limited to 'libstdc++-v3/config/abi/pre/gnu.ver')
-rw-r--r-- | libstdc++-v3/config/abi/pre/gnu.ver | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index 782b123..521cebf 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -2014,6 +2014,13 @@ GLIBCXX_3.4.26 { # std::basic_string::insert(const_iterator, initializer_list) _ZNSt7__cxx1112basic_stringI[cw]St11char_traitsI[cw]ESaI[cw]EE6insertEN9__gnu_cxx17__normal_iteratorIPK[cw]S4_EESt16initializer_listI[cw]E; + # std::logic_error move operations + _ZNSt11logic_errorC[12]EOS_; + _ZNSt11logic_erroraSEOS_; + # std::runtime_error move operations + _ZNSt13runtime_errorC[12]EOS_; + _ZNSt13runtime_erroraSEOS_; + } GLIBCXX_3.4.25; # Symbols in the support library (libsupc++) have their own tag. |