+2008-07-10 Johannes Singler <singler@ira.uka.de>
+
+ * include/parallel/balanced_quicksort.h:
+ (qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
+
2008-07-09 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/36451
_GLIBCXX_PARALLEL_ASSERT(
(!comp(*pivot_pos, *begin) && !comp(*(begin + n / 2), *pivot_pos))
- || (!comp(*pivot_pos, *begin) && !comp(*end, *pivot_pos))
+ || (!comp(*pivot_pos, *begin) && !comp(*(end - 1), *pivot_pos))
|| (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*begin, *pivot_pos))
- || (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*end, *pivot_pos))
- || (!comp(*pivot_pos, *end) && !comp(*begin, *pivot_pos))
- || (!comp(*pivot_pos, *end) && !comp(*(begin + n / 2), *pivot_pos)));
+ || (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*(end - 1), *pivot_pos))
+ || (!comp(*pivot_pos, *(end - 1)) && !comp(*begin, *pivot_pos))
+ || (!comp(*pivot_pos, *(end - 1)) && !comp(*(begin + n / 2), *pivot_pos)));
#endif
// Swap pivot value to end.