This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Tests fixes and debug vector pendantic capacity management change
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 20 Dec 2014 18:09:11 +0000
- Subject: Re: Tests fixes and debug vector pendantic capacity management change
- Authentication-results: sourceware.org; auth=none
- References: <5495A3E5 dot 9010807 at gmail dot com>
On 20/12/14 17:29 +0100, François Dumont wrote:
Hi
Following a discussion on Reflector that has been reported to me,
people are complaining about management of the vector capacity in the
pedantic debug mode. Even if it is not crystal clear in the Standard
there seems to be a consensus that clear shouldn't impact it. So here
is a simple patch to stop resetting _M_guaranteed_capacity in this
method.
As I run all tests in debug mode I also fix another problem. In
testsuite/23_containers/vector/bool/allocator/swap.cc == and !=
propagating_allocator operators must be within __gnu_test namespace in
order to be considered thanks to ADL when in debug mode.
Thanks for fixing that.
There are also 2 tests that XPASS:
XPASS: experimental/string_view/element_access/char/2.cc execution test
XPASS: experimental/string_view/element_access/wchar_t/2.cc execution test
Debug assertions has been commented about because not compatible
with constexpr. Do we keep them this way ?
Yes, otherwise they stop being constexpr.