* include/debug/safe_iterator.h (_Safe_iterator::operator++()): Fix
lifetime of lock.
From-SVN: r240549
+2016-09-27 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/debug/safe_iterator.h (_Safe_iterator::operator++()): Fix
+ lifetime of lock.
+
2016-09-20 Jonathan Wakely <jwakely@redhat.com>
* python/libstdcxx/v6/xmethods.py (DequeWorkerBase.__init__)
_GLIBCXX_DEBUG_VERIFY(this->_M_incrementable(),
_M_message(__msg_bad_inc)
._M_iterator(*this, "this"));
- __gnu_cxx::__scoped_lock(this->_M_get_mutex());
+ __gnu_cxx::__scoped_lock __l(this->_M_get_mutex());
++base();
return *this;
}