[Bug libstdc++/80034] [5/6 Regression] unqualified calls to std::distance in std::list::sort
ville at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 13 19:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80034
--- Comment #3 from ville at gcc dot gnu.org ---
Author: ville
Date: Mon Mar 13 19:43:27 2017
New Revision: 246108
URL: https://gcc.gnu.org/viewcvs?rev=246108&root=gcc&view=rev
Log:
PR libstdc++/80034
* include/bits/list.tcc (merge(list&&)): Use const for the size_t
in the function and in the catch-block, qualify uses of std::distance.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/80034.cc: New.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/list/operations/80034.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/bits/list.tcc
More information about the Gcc-bugs
mailing list