You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
libcxx_old/test/libcxx/debug/containers
Tom Stellard cb9e96f6f1 Merging r323390:
------------------------------------------------------------------------
r323390 | ericwf | 2018-01-24 16:02:48 -0800 (Wed, 24 Jan 2018) | 9 lines

Fix PR35564 - std::list splice/erase incorrectly throw in debug mode.

There was a bug in the implementation of splice where the container
sizes were updated before decrementing one of the iterators. Afterwards,
the result of decrementing the iterator was flagged as UB by the debug
implementation because the container was reported to be empty.

This patch fixes that bug by delaying the updating of the container
sizes until after the iterators have been correctly constructed.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_60@334621 91177308-0d34-0410-b5e6-96231b3b80d8
8 years ago
..
db_associative_container_tests.pass.cpp Add markup for libc++ dylib availability 9 years ago
db_sequence_container_iterators.pass.cpp Merging r323390: 8 years ago
db_string.pass.cpp Add markup for libc++ dylib availability 9 years ago
db_unord_container_tests.pass.cpp Add markup for libc++ dylib availability 9 years ago