diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-10-27 00:50:40 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-10-27 00:50:40 +0100 |
commit | d67be4437a94b3f261ee22515b9508da59c691ef (patch) | |
tree | 102e630a448b23221458eabdc5ea069db19503fc /libstdc++-v3/ChangeLog | |
parent | e1b76fde8ffaa74dffc895c2e2e625e30428b435 (diff) | |
download | gcc-d67be4437a94b3f261ee22515b9508da59c691ef.zip gcc-d67be4437a94b3f261ee22515b9508da59c691ef.tar.gz gcc-d67be4437a94b3f261ee22515b9508da59c691ef.tar.bz2 |
Protect more algorithms from overloaded comma operators
* include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void
to ensure overloaded comma not used.
* include/bits/stl_algobase.h (__fill_n_a, equal): Likewise.
* include/bits/stl_uninitialized.h (__uninitialized_fill_n)
(__uninitialized_fill_n_a, __uninitialized_default_n_1)
(__uninitialized_default_n_a, __uninitialized_copy_n)
(__uninitialized_copy_n_pair): Likewise
* testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
Use test iterator wrappers with overloaded comma operator.
* testsuite/25_algorithms/fill_n/1.cc: Likewise.
* testsuite/25_algorithms/generate_n/1.cc: New test.
* testsuite/25_algorithms/stable_partition/1.cc: New test.
* testsuite/util/testsuite_iterators.h (operator,): Add deleted
non-member comma operator with iterator wrappers as right operand.
From-SVN: r254128
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a4df5b6..c53e12b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,20 @@ +2017-10-27 Jonathan Wakely <jwakely@redhat.com> + + * include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void + to ensure overloaded comma not used. + * include/bits/stl_algobase.h (__fill_n_a, equal): Likewise. + * include/bits/stl_uninitialized.h (__uninitialized_fill_n) + (__uninitialized_fill_n_a, __uninitialized_default_n_1) + (__uninitialized_default_n_a, __uninitialized_copy_n) + (__uninitialized_copy_n_pair): Likewise + * testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc: + Use test iterator wrappers with overloaded comma operator. + * testsuite/25_algorithms/fill_n/1.cc: Likewise. + * testsuite/25_algorithms/generate_n/1.cc: New test. + * testsuite/25_algorithms/stable_partition/1.cc: New test. + * testsuite/util/testsuite_iterators.h (operator,): Add deleted + non-member comma operator with iterator wrappers as right operand. + 2017-10-26 Ville Voutilainen <ville.voutilainen@gmail.com> Deduction guides for associative containers, debug mode deduction |