From: Jonathan Wakely Date: Sun, 25 Jul 2010 16:44:38 +0000 (+0000) Subject: re PR libstdc++/45060 (Wreorder warning in bits/hashtable.h) X-Git-Tag: releases/gcc-4.6.0~5439 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20b84bef2b603adfc1a079de6575021c3529077f;p=thirdparty%2Fgcc.git re PR libstdc++/45060 (Wreorder warning in bits/hashtable.h) 2010-07-25 Jonathan Wakely PR libstdc++/45060 * include/bits/hashtable.h (_Hashtable::_Hashtable(_Hashtable&&)): Reorder mem-initializers. From-SVN: r162515 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a5e61f786644..64fc3e6b2c4e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-07-25 Jonathan Wakely + + PR libstdc++/45060 + * include/bits/hashtable.h (_Hashtable::_Hashtable(_Hashtable&&)): + Reorder mem-initializers. + 2010-07-22 Benjamin Kosnik DocBook 4.5 to 5.0 transition. diff --git a/libstdc++-v3/include/bits/hashtable.h b/libstdc++-v3/include/bits/hashtable.h index c7aceb19f8e7..cbc67ba20014 100644 --- a/libstdc++-v3/include/bits/hashtable.h +++ b/libstdc++-v3/include/bits/hashtable.h @@ -651,10 +651,10 @@ namespace std _H1, _H2, _Hash, __chc>(__ht), __detail::_Map_base<_Key, _Value, _ExtractKey, __uk, _Hashtable>(__ht), _M_node_allocator(__ht._M_node_allocator), + _M_buckets(__ht._M_buckets), _M_bucket_count(__ht._M_bucket_count), _M_element_count(__ht._M_element_count), - _M_rehash_policy(__ht._M_rehash_policy), - _M_buckets(__ht._M_buckets) + _M_rehash_policy(__ht._M_rehash_policy) { size_type __n_bkt = __ht._M_rehash_policy._M_next_bkt(0); __ht._M_buckets = __ht._M_allocate_buckets(__n_bkt);