https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81891

--- Comment #10 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 17:09:15 2017
New Revision: 252481

URL: https://gcc.gnu.org/viewcvs?rev=252481&root=gcc&view=rev
Log:
PR libstdc++/81891 fix double-free in hashtable constructor

        PR libstdc++/81891
        * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
        size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
        const _ExtractKey&, const allocator_type&)): Let destructor do clean
        up if an exception is thrown.
        * testsuite/23_containers/unordered_map/cons/81891.cc: New.

Added:
   
branches/range-gen2/libstdc++-v3/testsuite/23_containers/unordered_map/cons/81891.cc
Modified:
    branches/range-gen2/libstdc++-v3/ChangeLog
    branches/range-gen2/libstdc++-v3/include/bits/hashtable.h

Reply via email to