]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix non-reserved names in headers
authorJonathan Wakely <jwakely@redhat.com>
Wed, 7 Oct 2020 23:05:53 +0000 (00:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Oct 2020 00:35:43 +0000 (01:35 +0100)
commit0fe0032699636a2c75ebca11f1c878f1dedde554
treef8e3491272994cd0c7319000fdba4ca005eb867d
parent97a4f522269cfe2239c325a150c1849e69c04668
libstdc++: Fix non-reserved names in headers

Fix some bad uses of "ForwardIterator" in <ranges>.

There's also a "il" parameter in a std::seed_seq constructor in <random>
which is only reserved since C++14.

libstdc++-v3/ChangeLog:

* include/bits/random.h (seed_seq(initializer_list<T>)): Rename
parameter to use reserved name.
* include/bits/ranges_algo.h (shift_left, shift_right): Rename
template parameters to use reserved name.
* testsuite/17_intro/names.cc: Check "il". Do not check "d" and
"y" in C++20 mode.

(cherry picked from commit 23f75da95f5e8e09e9fcbd5b0d2885e6c44739aa)
libstdc++-v3/include/bits/random.h
libstdc++-v3/include/bits/ranges_algo.h
libstdc++-v3/testsuite/17_intro/names.cc