re PR libstdc++/80034 (unqualified calls to std::distance in std::list::sort)
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 13 Mar 2017 19:41:50 +0000 (21:41 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 13 Mar 2017 19:41:50 +0000 (21:41 +0200)
commit648c989484e4d1dc0c88bbe88886e8b59d1720ba
treef59ccedbb7a931ecd5f1cb4d3d1b7cb3a83dde31
parenta00a486562eb589239c2a54b59afa6c7d302dd98
re PR libstdc++/80034 (unqualified calls to std::distance in std::list::sort)

PR libstdc++/80034
* include/bits/list.tcc (merge(list&&)): Use const for the size_t
in the catch-block.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/80034.cc: New.

From-SVN: r246107
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/testsuite/23_containers/list/operations/80034.cc [new file with mode: 0644]