]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix use of inaccessible private member in split_view (PR93936)
authorPatrick Palka <ppalka@redhat.com>
Wed, 26 Feb 2020 13:38:06 +0000 (08:38 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 26 Feb 2020 15:24:00 +0000 (10:24 -0500)
commit8ce13842b50cbd2676f2e322995182af20df31fe
tree9b4562ea19b57365554d59dc9d0df45721634730
parentfd335985582cbb9de3a08e071e652bb38960b493
libstdc++: Fix use of inaccessible private member in split_view (PR93936)

We are calling _OuterIter::__current from _InnerIter::operator==, but the former
is private within this non-member friend.  Fix this by calling
_OuterIter::operator== instead, which does the right thing here.

libstdc++-v3/ChangeLog:

PR libstdc++/93936
* include/std/ranges (split_view::_InnerIter::operator==): Compare
the operands' _M_i rather than their _M_i.current().
* testsuite/std/ranges/adaptors/split.cc: Augment test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
This page took 0.055046 seconds and 5 git commands to generate.