Hi
This is a patch to fix PR 55033 in profile mode. Like in debug mode
it was missing noexcept qualifier on move constructor.
2014-01-26 François Dumont <fdum...@gcc.gnu.org>
PR libstdc++/55083
* include/profile/unordered_base.h (_Unordered_profile()): Add
noexcept qualifier.
(_Unordered_profile(const _Unordered_profile&)): Likewise.
(_Unordered_profile(_Unordered_profile&&)): Likewise.
Tested under Linux x86_64 profile mode.
With this patch I have no more failure in profile mode.
Ok to commit ?
François
Index: include/profile/unordered_base.h
===================================================================
--- include/profile/unordered_base.h (revision 207074)
+++ include/profile/unordered_base.h (working copy)
@@ -154,15 +154,15 @@
using __unique_keys = std::integral_constant<bool, _Unique_keys>;
protected:
- _Unordered_profile()
+ _Unordered_profile() noexcept
{
auto& __uc = _M_conjure();
__profcxx_hashtable_construct(&__uc, __uc.bucket_count());
__profcxx_hashtable_construct2(&__uc);
}
- _Unordered_profile(const _Unordered_profile&)
+ _Unordered_profile(const _Unordered_profile&) noexcept
: _Unordered_profile() { }
- _Unordered_profile(_Unordered_profile&&)
+ _Unordered_profile(_Unordered_profile&&) noexcept
: _Unordered_profile() { }
~_Unordered_profile() noexcept