aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2020-02-26 08:38:06 -0500
committerPatrick Palka <ppalka@redhat.com>2020-02-26 10:24:00 -0500
commit8ce13842b50cbd2676f2e322995182af20df31fe (patch)
tree9b4562ea19b57365554d59dc9d0df45721634730 /gcc
parentfd335985582cbb9de3a08e071e652bb38960b493 (diff)
downloadgcc-8ce13842b50cbd2676f2e322995182af20df31fe.zip
gcc-8ce13842b50cbd2676f2e322995182af20df31fe.tar.gz
gcc-8ce13842b50cbd2676f2e322995182af20df31fe.tar.bz2
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions