]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix access issue in iota_view::_Sentinel [PR100690]
authorPatrick Palka <ppalka@redhat.com>
Fri, 21 May 2021 03:39:05 +0000 (23:39 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 10 Jun 2021 19:15:54 +0000 (15:15 -0400)
commitc6ccaf17ddbe8adb76475826be02580790ab28ca
tree483e1c4293ffe5225767fc718058951492ff6026
parente3804ba98f2d8de9b4540d134fa0d9275a1e8057
libstdc++: Fix access issue in iota_view::_Sentinel [PR100690]

libstdc++-v3/ChangeLog:

PR libstdc++/100690
* include/std/ranges (iota_view::_Sentinel::_M_distance_from):
Split out this member function from ...
(iota_view::_Sentinel::operator-): ... here, for sake of access
control.
* testsuite/std/ranges/iota/iota_view.cc (test05): New test.

(cherry picked from commit 317a38cd468d565dc8ce45c6da0dbccf38808f70)
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/iota/iota_view.cc