gcc/libstdc++-v3/include
Pavel I. Kryukov 52ebc2be09 libstdc++: Add self-merge check to std::forward_list::merge [PR103853]
This implements the proposed resolution of LWG 3088, so that x.merge(x)
is a no-op, consistent with std::list::merge.

Signed-off-by: Pavel I. Kryukov <pavel.kryukov@phystech.edu>

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	PR libstdc++/103853
	* include/bits/forward_list.tcc (forward_list::merge): Check for
	self-merge.
	* testsuite/23_containers/forward_list/operations/merge.cc: New test.
2022-01-06 14:56:48 +00:00
..
backward Update copyright years. 2022-01-03 10:42:10 +01:00
bits libstdc++: Add self-merge check to std::forward_list::merge [PR103853] 2022-01-06 14:56:48 +00:00
c Update copyright years. 2022-01-03 10:42:10 +01:00
c_compatibility Update copyright years. 2022-01-03 10:42:10 +01:00
c_global Update copyright years. 2022-01-03 10:42:10 +01:00
c_std Update copyright years. 2022-01-03 10:42:10 +01:00
debug Update copyright years. 2022-01-03 10:42:10 +01:00
decimal Update copyright years. 2022-01-03 10:42:10 +01:00
experimental Update copyright years. 2022-01-03 10:42:10 +01:00
ext Update copyright years. 2022-01-03 10:42:10 +01:00
parallel Update copyright years. 2022-01-03 10:42:10 +01:00
precompiled Update copyright years. 2022-01-03 10:42:10 +01:00
pstl libstdc++: Fix up parallel_backend_serial.h [PR97549] 2021-02-23 09:28:14 +01:00
std libstdc++: Do not use std::isdigit in <charconv> [PR103911] 2022-01-06 14:56:12 +00:00
tr1 Update copyright years. 2022-01-03 10:42:10 +01:00
tr2 Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in libstdc++: Fix non-reserved name in std::allocator base class [PR64135] 2021-12-09 22:50:10 +00:00