From b82f988e8d21c709426d691329cf025e978d94ed Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 13 May 2014 18:22:08 +0100 Subject: re PR libstdc++/60497 (unique_ptr tries to complete its type T even though it's not required to be a complete type) PR libstdc++/60497 * include/debug/array (get): Qualify call to other get overload. * include/profile/array (get): Likewise. * include/std/array (get): Likewise. * include/std/functional (_Mu, _Bind, _Bind_result): Qualify std::get. * include/std/mutex (unique_lock, call_once): Use __addressof. (__unlock_impl): Remove unused template. (__try_to_lock): Declare inline. (__try_lock_impl::__do_try_lock): Qualify function calls. (lock): Avoid narrowing conversion. * testsuite/20_util/bind/60497.cc: New. * testsuite/23_containers/array/element_access/60497.cc: New. * testsuite/30_threads/call_once/60497.cc: New. * testsuite/30_threads/unique_lock/cons/60497.cc: New. From-SVN: r210388 --- libstdc++-v3/include/std/array | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstdc++-v3/include/std/array') diff --git a/libstdc++-v3/include/std/array b/libstdc++-v3/include/std/array index 67680d6..22947ce 100644 --- a/libstdc++-v3/include/std/array +++ b/libstdc++-v3/include/std/array @@ -281,7 +281,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER get(array<_Tp, _Nm>&& __arr) noexcept { static_assert(_Int < _Nm, "index is out of bounds"); - return std::move(get<_Int>(__arr)); + return std::move(_GLIBCXX_STD_C::get<_Int>(__arr)); } template -- cgit v1.1