aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-02 10:21:01 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-03 15:15:27 +0000
commit1e7a269856fd67aff78ac874bec96d31a54b2fd9 (patch)
treee9cc14a9f05fd914b2710520d4574014b169ed55 /gcc
parent600dcd74b8e614c996b492d97878660faf484094 (diff)
downloadgcc-1e7a269856fd67aff78ac874bec96d31a54b2fd9.zip
gcc-1e7a269856fd67aff78ac874bec96d31a54b2fd9.tar.gz
gcc-1e7a269856fd67aff78ac874bec96d31a54b2fd9.tar.bz2
libstdc++: Fix regression in std::list::sort [PR66742]
The standard does not require const-correct comparisons in list::sort. libstdc++-v3/ChangeLog: PR libstdc++/66742 * include/bits/list.tcc (list::sort): Use mutable iterators for comparisons. * include/bits/stl_list.h (_Scratch_list::_Ptr_cmp): Likewise. * testsuite/23_containers/list/operations/66742.cc: Check non-const comparisons.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions