This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/25288] std::list insert members should have no effects if an exception is thrown



------- Comment #4 from paolo at gcc dot gnu dot org  2005-12-09 18:25 -------
Subject: Bug 25288

Author: paolo
Date: Fri Dec  9 18:24:53 2005
New Revision: 108313

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108313
Log:
2005-12-09  Paolo Carlini  <pcarlini@suse.de>
            Howard Hinnant  <hhinnant@apple.com>

        PR libstdc++/25288
        * include/bits/stl_list.h (list<>::_M_insert_dispatch, _M_fill_insert):
        Remove.
        (_M_initialize_dispatch, _M_fill_initialize): Add.
        (list(size_type, const value_type&, const allocator_type&),
        list(const list&), list(_InputIterator, _InputIterator,
        const allocator_type&): Use the latter.
        (insert(iterator, size_type, const value_type&), insert(iterator,
        _InputIterator, _InputIterator)): Use construction & splice.
        * testsuite/23_containers/list/modifiers/insert/25288.cc: New.
        * testsuite/testsuite_allocator.h (class throw_allocator): Add.

        * include/bits/stl_list.h (list<>::insert, erase): Fix wrong comments.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/list/modifiers/insert/
    trunk/libstdc++-v3/testsuite/23_containers/list/modifiers/insert/25288.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_list.h
    trunk/libstdc++-v3/testsuite/testsuite_allocator.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25288


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]