This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] policy based associated containers
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: bkoz at redhat dot com (Benjamin Kosnik)
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Jun 2005 18:34:16 +0200 (CEST)
- Subject: Re: [v3] policy based associated containers
Benjamin Kosnik wrote:
> This is a refined version of:
>
> http://gcc.gnu.org/ml/libstdc++/2005-04/msg00047.html
>
> In addition, this patch converts the relevant parts of the performance
> testsuite to using typelists. There are a lot of changes to the
> performance testsuite that still have to be integrated, however this is
> a good first step.
This causes testsuite failures on 64-bit platforms:
FAIL: ext/pb_assoc/example/basic_map.cc (test for excess errors)
FAIL: ext/pb_assoc/example/basic_multimap.cc (test for excess errors)
FAIL: ext/pb_assoc/example/basic_set.cc (test for excess errors)
FAIL: ext/pb_assoc/example/erase_if.cc (test for excess errors)
FAIL: ext/pb_assoc/example/extract_key.cc (test for excess errors)
FAIL: ext/pb_assoc/example/hash_find_neg.cc (test for excess errors)
FAIL: ext/pb_assoc/example/hash_initial_size.cc (test for excess errors)
FAIL: ext/pb_assoc/example/hash_load_set_change.cc (test for excess errors)
FAIL: ext/pb_assoc/example/hash_resize.cc (test for excess errors)
FAIL: ext/pb_assoc/example/hash_shift_mask.cc (test for excess errors)
FAIL: ext/pb_assoc/example/store_hash.cc (test for excess errors)
due to:
/home/uweigand/fsf/gcc-head-build/s390x-ibm-linux/libstdc++-v3/include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp:91: warning: left shift count >= width of type
which is:
PB_ASSOC_CLASS_T_DEC
const typename PB_ASSOC_CLASS_C_DEC::size_type PB_ASSOC_CLASS_C_DEC::s_highest_bit_1 =
1 << (s_num_bits_in_size_type - 1);
I gather this should be (PB_ASSOC_CLASS_C_DEC::size_type)1 instead of 1 ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com