mirror of git://gcc.gnu.org/git/gcc.git
re PR libstdc++/63811 (r217322 breaks bootstrap)
PR libstdc++/63811 * include/bits/stl_deque.h (_Deque_base::_M_move_impl()): Avoid using badname. From-SVN: r217343
This commit is contained in:
parent
33c430b504
commit
e9c51193ea
|
|
@ -1,3 +1,9 @@
|
||||||
|
2014-11-11 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
PR libstdc++/63811
|
||||||
|
* include/bits/stl_deque.h (_Deque_base::_M_move_impl()): Avoid using
|
||||||
|
badname.
|
||||||
|
|
||||||
2014-11-10 Jonathan Wakely <jwakely@redhat.com>
|
2014-11-10 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
|
* include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
|
||||||
|
|
|
||||||
|
|
@ -642,7 +642,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
|
||||||
// Create a copy of the current allocator.
|
// Create a copy of the current allocator.
|
||||||
_Tp_alloc_type __alloc{_M_get_Tp_allocator()};
|
_Tp_alloc_type __alloc{_M_get_Tp_allocator()};
|
||||||
// Put that copy in a moved-from state.
|
// Put that copy in a moved-from state.
|
||||||
_Tp_alloc_type __unused __attribute((__unused__)) {std::move(__alloc)};
|
_Tp_alloc_type __sink __attribute((__unused__)) {std::move(__alloc)};
|
||||||
// Create an empty map that allocates using the moved-from allocator.
|
// Create an empty map that allocates using the moved-from allocator.
|
||||||
_Deque_base __empty{__alloc};
|
_Deque_base __empty{__alloc};
|
||||||
// Now safe to modify current allocator and perform non-throwing swaps.
|
// Now safe to modify current allocator and perform non-throwing swaps.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue