[PATCH] libstdc++: -D_GLIBCXX_DEBUG fixes in the constrained algos tests

Jonathan Wakely jwakely@redhat.com
Thu Feb 27 17:26:00 GMT 2020


On 27/02/20 10:42 -0500, Patrick Palka wrote:
>This fixes some failures in the constrained algos tests when run in debug mode.
>
>libstdc++-v3/ChangeLog:
>
>	* testsuite/25_algorithms/copy/constrained.cc: Don't assume that the
>	base() of an vector<>::iterator is a pointer.
>	* testsuite/25_algorithms/copy_backward/constrained.cc: Likewise.
>	* testsuite/25_algorithms/move/constrained.cc: Likewise.
>	* testsuite/25_algorithms/move_backward/constrained.cc: Likewise.
>	* testsuite/25_algorithms/inplace_merge/constrained.cc: Use foo.data()
>	instead of &foo[0] when foo is a vector.
>	* testsuite/25_algorithms/partial_sort/constrained.cc: Likewise.
>	* testsuite/25_algorithms/partial_sort_copy/constrained.cc: Likewise.
>	* testsuite/25_algorithms/shuffle/constrained.cc: Likewise.
>	* testsuite/25_algorithms/sort/constrained.cc: Likewise.
>	* testsuite/25_algorithms/stable_sort/constrained.cc: Likewise.

OK, thanks.




More information about the Gcc-patches mailing list