aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-11-07 23:10:45 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-11-07 23:10:45 +0000
commit3a99fd4dbb68c543299278c5bf5c04dfe93fc56c (patch)
tree56ed1610410711834769ead92c420b3250e73c37 /gcc
parentb77cc8aa094c234e62814ddcc2230874b96aabf3 (diff)
downloadgcc-3a99fd4dbb68c543299278c5bf5c04dfe93fc56c.zip
gcc-3a99fd4dbb68c543299278c5bf5c04dfe93fc56c.tar.gz
gcc-3a99fd4dbb68c543299278c5bf5c04dfe93fc56c.tar.bz2
libstdc++: make negative count safe with std::for_each_n
The Library Working Group have approved a change to std::for_each_n that requires it to handle negative N gracefully, which we were not doing for random access iterators. * include/bits/stl_algo.h (for_each_n): Handle negative count. * testsuite/25_algorithms/for_each/for_each_n_debug.cc: New test. From-SVN: r277932
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions