https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100690
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:c6ccaf17ddbe8adb76475826be02580790ab28ca commit r11-8545-gc6ccaf17ddbe8adb76475826be02580790ab28ca Author: Patrick Palka <ppa...@redhat.com> Date: Thu May 20 23:39:05 2021 -0400 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)