https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80034
--- Comment #4 from ville at gcc dot gnu.org --- Author: ville Date: Mon Mar 13 19:44:42 2017 New Revision: 246109 URL: https://gcc.gnu.org/viewcvs?rev=246109&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-5-branch/libstdc++-v3/testsuite/23_containers/list/operations/80034.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/list.tcc