From: Jonathan Wakely Date: Wed, 12 Oct 2016 11:20:29 +0000 (+0100) Subject: Remove 'return' from noreturn function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40571365a0c2d084a8f30d0cd6969d8c15e89792;p=gcc.git Remove 'return' from noreturn function * libsupc++/nested_exception.h (throw_with_nested): Remove return. From-SVN: r241032 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6dfe2637fe2..b11d1123a23 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2016-10-12 Jonathan Wakely + * 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 0c00d7487ac..078af0ea16f 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_, __bool_constant, __not_>>; - 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 would be well-formed.