[patch] libstdc++/67707 Leave moved-from std::deque in a valid state

Jonathan Wakely jwakely@redhat.com
Thu Sep 24 15:59:00 GMT 2015


Apparently when adding allocator propagation to std::deque I didn't
read my own comment in this constructor:

      _Deque_base(const allocator_type& __a)
      : _M_impl(__a)
      { /* Caller must initialize map. */ }

This adds the missing initialization.

Tested ppc64le-linux, committed to trunk.

This needs to be backported to gcc-5-branch too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1930 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150924/160fefd0/attachment.bin>


More information about the Gcc-patches mailing list