aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-08-31 16:30:01 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-08-31 17:36:12 +0100
commitf63e86f797d82772c62a7475dbc6e881727b666f (patch)
tree5f2b0d5484a64e55732eefdc2689f679e651de33 /libcpp
parent763eb1f19239ebb19c0f87590a4f02300c02c52b (diff)
downloadgcc-f63e86f797d82772c62a7475dbc6e881727b666f.zip
gcc-f63e86f797d82772c62a7475dbc6e881727b666f.tar.gz
gcc-f63e86f797d82772c62a7475dbc6e881727b666f.tar.bz2
libstdc++: Remove redundant noexcept-specifier on definitions
These destructors are noexcept anyway. I removed the redundant noexcept from the error_category destructor's declaration in r0-123475, but didn't remove it from the defaulted definition in system_error.cc. That causes warnings if the library is built with Clang. This removes the redundant noexcept from ~error_category and ~system_error and adds tests to ensure they really are noexcept. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * src/c++11/system_error.cc (error_category::~error_category()): Remove noexcept-specifier. (system_error::~system_error()): Likewise. * testsuite/19_diagnostics/error_category/noexcept.cc: New test. * testsuite/19_diagnostics/system_error/noexcept.cc: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions