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++/66017] Undefined behaviour in std::set<long long>


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


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