r243757 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Dec 16 18:13:00 GMT 2016


Author: redi
Date: Fri Dec 16 18:13:09 2016
New Revision: 243757

URL: https://gcc.gnu.org/viewcvs?rev=243757&root=gcc&view=rev
Log:
Add assertion to _Rb_tree::erase to check for end iterators

	* include/bits/stl_tree.h (_Rb_tree::_M_erase_aux(const_iterator)):
	Add assertion for undefined argument.
	(_Rb_tree::_M_erase_aux(const_iterator, const_iterator)): Call
	_M_erase_aux directly instead of through erase.
	(_Rb_tree::_M_erase_aux(const Key&)): Likewise.
	* testsuite/23_containers/map/modifiers/erase/end_neg.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/map/modifiers/erase/end_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_tree.h



More information about the Libstdc++-cvs mailing list