re PR libstdc++/85845 (Many libstdc++ test failures)
authorFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 21 May 2018 16:51:47 +0000 (16:51 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 21 May 2018 16:51:47 +0000 (16:51 +0000)
2018-05-21  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/85845
* include/bits/stl_tree.h
(_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
qualification.

From-SVN: r260478

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h

index 78f5df6..eb77a79 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-21  François Dumont  <fdumont@gcc.gnu.org>
+
+       PR libstdc++/85845
+       * include/bits/stl_tree.h
+       (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
+       qualification.
+
 2018-05-21  Jonathan Wakely  <jwakely@redhat.com>
 
        * src/filesystem/std-ops.cc (absolute): Report an error for empty
index 85f190a..b87d614 100644 (file)
@@ -980,7 +980,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     public:
       _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a)
       noexcept( noexcept(
-       _Rb_tree(std::declval<_Rb_tree>(), std::declval<_Node_allocator>(),
+       _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(),
                 std::declval<typename _Alloc_traits::is_always_equal>())) )
       : _Rb_tree(std::move(__x), std::move(__a),
                 typename _Alloc_traits::is_always_equal{})