[PATCH] PR libstdc++/81221 fix namespace qualification for parallel mode

Jonathan Wakely jwakely@redhat.com
Tue Jun 27 16:19:00 GMT 2017


On 27/06/17 15:46 +0100, Jonathan Wakely wrote:
>std::sample needs to call _GLIBCXX_STD_A::__sample instead of
>std::__sample, so that it works when Parallel Mode is active.
>
>	PR libstdc++/81221
>	* include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
>	std.
>	* testsuite/25_algorithms/sample/81221.cc: New.
>
>Tested powerpc64le-linux, committed to trunk, and will commit to the
>gcc-7-branch shortly.

I forgot that tests can't use -D_GLIBCXX_PARALLEL if libgomp isn't
available. This makes it conditional on running "make check-parallel"

Commnitted to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170627/52b211b1/attachment.bin>


More information about the Libstdc++ mailing list