This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/57010] [c++0x] priority_queue<>::pop() calls self-move-assignment operator
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 20 Apr 2013 08:25:11 +0000
- Subject: [Bug libstdc++/57010] [c++0x] priority_queue<>::pop() calls self-move-assignment operator
- Auto-submitted: auto-generated
- References: <bug-57010-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57010
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-04-20 08:25:11 UTC ---
Note that the implementation of priority_queue::push and pop is fully
constrained by the Standard, directly boils down to operations on the
underlying container and std::push_heap and std::pop_heap calls, thus this
can't be an issue with our implementation of std::priority_queue itself.
Looks like the problem in in the implementation of std::pop_heap, eg,
__pop_heap should not be called at all when __last - __first == 0.