[Bug libstdc++/66017] Undefined behaviour in std::set<long long>
ctice at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 24 20:54:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66017
--- Comment #8 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Thu Sep 24 20:53:27 2015
New Revision: 228098
URL: https://gcc.gnu.org/viewcvs?rev=228098&root=gcc&view=rev
Log:
Backport r223811 from gcc-5-branch:
PR libstdc++/66017
* include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
(_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
from _Base_ptr.
(_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
(_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
* include/ext/aligned_buffer.h (__aligned_membuf): New type using
alignment of _Tp as a member subobject, not as a complete object.
* python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
_Link_type manually as it might not be in the debug info.
Modified:
branches/google/gcc-4_9-mobile/libstdc++-v3/include/bits/stl_tree.h
branches/google/gcc-4_9-mobile/libstdc++-v3/include/ext/aligned_buffer.h
branches/google/gcc-4_9-mobile/libstdc++-v3/python/libstdcxx/v6/printers.py
More information about the Gcc-bugs
mailing list