]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destr...
authorH.J. Lu <hongjiu.lu@intel.com>
Sat, 13 Dec 2008 01:40:15 +0000 (01:40 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 13 Dec 2008 01:40:15 +0000 (17:40 -0800)
2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>

PR libstdc++/37144
* testsuite/util/regression/trait/assoc/type_trait.hpp
(regression_test_type_traits): Add const to pair_type_rebind.

From-SVN: r142736

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/regression/trait/assoc/type_trait.hpp

index a9b95b1d61b9a5b4348e0a247a8fd115bac981bf..66dbdfdf0597eb826a1761ea4bf3fad63a2595e5 100644 (file)
@@ -1,3 +1,9 @@
+2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR libstdc++/37144
+       * testsuite/util/regression/trait/assoc/type_trait.hpp
+       (regression_test_type_traits): Add const to pair_type_rebind.
+
 2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>
 
        * src/atomic.cc: Correct guards to match mutex.cc.
index 2764e434f75f95a7a466b9ade15ed1babd395d58..67373c7d52e3a32cfe2c23bd5fd24c417784751c 100644 (file)
@@ -87,7 +87,7 @@ namespace __gnu_pbds
        
        typedef typename basic_type_rebind::const_reference basic_type_const_reference;
 
-       typedef typename cntnr::allocator_type::template rebind<std::pair<basic_type, basic_type> >::other pair_type_rebind;
+       typedef typename cntnr::allocator_type::template rebind<std::pair<const basic_type, basic_type> >::other pair_type_rebind;
        typedef typename pair_type_rebind::const_reference pair_type_const_reference;
 
        template<typename Gen>