diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-10-12 12:20:29 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-10-12 12:20:29 +0100 |
commit | 40571365a0c2d084a8f30d0cd6969d8c15e89792 (patch) | |
tree | 27c021c5c9bccf53db62e99c25acd8392b391e55 | |
parent | 164b41ebf3e25bdb0b30e230591c463ce56df9d4 (diff) | |
download | gcc-40571365a0c2d084a8f30d0cd6969d8c15e89792.zip gcc-40571365a0c2d084a8f30d0cd6969d8c15e89792.tar.gz gcc-40571365a0c2d084a8f30d0cd6969d8c15e89792.tar.bz2 |
Remove 'return' from noreturn function
* libsupc++/nested_exception.h (throw_with_nested): Remove return.
From-SVN: r241032
-rw-r--r-- | libstdc++-v3/ChangeLog | 2 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/nested_exception.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6dfe263..b11d112 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2016-10-12 Jonathan Wakely <jwakely@redhat.com> + * libsupc++/nested_exception.h (throw_with_nested): Remove return. + * doc/xml/manual/intro.xml: Document LWG 2442 status. * include/std/mutex [_GLIBCXX_HAVE_TLS] (__once_call_impl): Remove. [_GLIBCXX_HAVE_TLS] (_Once_call): Declare primary template and define diff --git a/libstdc++-v3/libsupc++/nested_exception.h b/libstdc++-v3/libsupc++/nested_exception.h index 0c00d74..078af0e 100644 --- a/libstdc++-v3/libsupc++/nested_exception.h +++ b/libstdc++-v3/libsupc++/nested_exception.h @@ -122,7 +122,7 @@ namespace std "throw_with_nested argument must be CopyConstructible"); using __nest = __and_<is_class<_Up>, __bool_constant<!__is_final(_Up)>, __not_<is_base_of<nested_exception, _Up>>>; - return std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{}); + std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{}); } // Determine if dynamic_cast<const nested_exception&> would be well-formed. |