I'm committing the __throw_bad_alloc() part on the branch too.

commit 02221ce47cade82036c7d78ed79e5fe536fdfcfd
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Sep 3 23:01:02 2015 +0100

    	* include/std/shared_mutex (shared_timed_mutex::shared_timed_mutex):
    	Replace throw with __throw_bad_alloc.

diff --git a/libstdc++-v3/include/std/shared_mutex b/libstdc++-v3/include/std/shared_mutex
index b72a822..7b216a5 100644
--- a/libstdc++-v3/include/std/shared_mutex
+++ b/libstdc++-v3/include/std/shared_mutex
@@ -74,7 +74,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     {
       int __ret = pthread_rwlock_init(&_M_rwlock, NULL);
       if (__ret == ENOMEM)
-	throw bad_alloc();
+	__throw_bad_alloc();
       else if (__ret == EAGAIN)
 	__throw_system_error(int(errc::resource_unavailable_try_again));
       else if (__ret == EPERM)

Reply via email to