[patch] Fix two libstdc++ test failures with -std=gnu++14
François Dumont
frs.dumont@gmail.com
Tue Jun 16 20:18:00 GMT 2015
On 12/06/2015 01:22, Jonathan Wakely wrote:
> This fixes two test failures when the default compiler mode is
> -std=gnu++14
>
> FAIL: 25_algorithms/headers/algorithm/synopsis.cc (test for excess
> errors)
> FAIL: ext/profile/mutex_extensions_neg.cc (test for excess errors)
>
> I don't really like the change to the synopsis.cc test, but I don't
> think reproducing the SFINAE constraints in the test is ideal either.
>
> The mutex_extensions_neg.cc test works now, but I think we're missing
> specializations of __is_tuple_like_impl for __gnu_debug::array and
> __gnu_profile::array.
>
> Tested powerpc64le-linux, committed to trunk.
>
This patch introduced a regression in
20_util/tuple/creation_functions/tuple_cat.cc in debug mode.
Attached is a proposal to fix it properly. I am using <utility> as a
pivot header between <tuple> and <array>. This way <tuple> do not need
to include <array> anymore.
It also adds missing version namespace macro in debug and profile headers.
Not tested yet as I would like to know first if it ok to do it this way.
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tuple_like.patch
Type: text/x-patch
Size: 4994 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150616/cec00b1f/attachment.bin>
More information about the Libstdc++
mailing list