PR libstdc++/78389 fix backwards size adjustments.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 16 Jan 2017 11:36:33 +0000 (13:36 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 16 Jan 2017 11:36:33 +0000 (13:36 +0200)
commit53426b63b3c99db36df3c83bdbd71d5f4f514de2
tree42bd57becfdd6a924308d82d615795de9046274b
parent7cefdfd5aa277fe096cce99c9dc7afb1669ab4e2
PR libstdc++/78389 fix backwards size adjustments.

PR libstdc++/78389
* include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/78389.cc: Add
better test for the sizes.

From-SVN: r244490
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/testsuite/23_containers/list/operations/78389.cc