gcc/libstdc++-v3/testsuite
Jonathan Wakely 502a3c03e4 libstdc++: Fix P2255R2 dangling checks for std::tuple in C++17 [PR108822]
I accidentally used && in a fold-expression instead of || which meant
that in C++17 the tuple(UElements&&...) constructor only failed its
debug assertion if all tuple elements were dangling references. Some
missing tests (noted as "TODO") meant this wasn't tested.

This fixes the fold expression and adds the missing tests.

libstdc++-v3/ChangeLog:

	PR libstdc++/108822
	* include/std/tuple (__glibcxx_no_dangling_refs) [C++17]: Fix
	wrong fold-operator.
	* testsuite/20_util/tuple/dangling_ref.cc: Check tuples with one
	element and three elements. Check allocator-extended
	constructors.
2024-01-19 19:12:38 +00:00
..
17_intro libstdc++: Remove std::__unicode::__null_sentinel 2024-01-08 16:04:59 +00:00
18_support Update copyright years. 2024-01-03 12:19:35 +01:00
19_diagnostics Update copyright years. 2024-01-03 12:19:35 +01:00
20_util libstdc++: Fix P2255R2 dangling checks for std::tuple in C++17 [PR108822] 2024-01-19 19:12:38 +00:00
21_strings libstdc++: Fix std::char_traits<C>::move [PR113200] 2024-01-05 10:23:35 +00:00
22_locale libstdc++: Implement C++26 std::text_encoding (P1885R12) [PR113318] 2024-01-17 11:49:11 +00:00
23_containers libstdc++/debug: Fix constexpr _Safe_iterator in C++20 mode [PR109536] 2024-01-18 10:36:07 -05:00
24_iterators libstdc++: Implement P2836R1 changes to const_iterator 2024-01-15 15:13:53 -05:00
25_algorithms Update copyright years. 2024-01-03 12:19:35 +01:00
26_numerics libstdc++: Fix non-portable results from 64-bit std::subtract_with_carry_engine [PR107466] 2024-01-13 00:11:44 +00:00
27_io libstdc++: Fix error handling in filesystem::equivalent [PR113250] 2024-01-11 03:36:14 -08:00
28_regex Update copyright years. 2024-01-03 12:19:35 +01:00
29_atomics Update copyright years. 2024-01-03 12:19:35 +01:00
30_threads Update copyright years. 2024-01-03 12:19:35 +01:00
abi Update copyright years. 2024-01-03 12:19:35 +01:00
backward Update copyright years. 2024-01-03 12:19:35 +01:00
config Update copyright years. 2024-01-03 12:19:35 +01:00
data
decimal Update copyright years. 2024-01-03 12:19:35 +01:00
experimental libstdc++: Fix error handling in filesystem::equivalent [PR113250] 2024-01-11 03:36:14 -08:00
ext libstdc++: Implement C++26 std::text_encoding (P1885R12) [PR113318] 2024-01-17 11:49:11 +00:00
lib Update copyright years. 2024-01-03 12:19:35 +01:00
libstdc++-abi Update copyright years. 2024-01-03 12:19:35 +01:00
libstdc++-dg Update copyright years. 2024-01-03 12:19:35 +01:00
libstdc++-prettyprinters libstdc++: Add GDB printer for std::integral_constant 2024-01-11 17:35:57 +00:00
libstdc++-xmethods Update copyright years. 2024-01-03 12:19:35 +01:00
performance Update copyright years. 2024-01-03 12:19:35 +01:00
special_functions Update copyright years. 2024-01-03 12:19:35 +01:00
std libstdc++/debug: Fix constexpr _Safe_iterator in C++20 mode [PR109536] 2024-01-18 10:36:07 -05:00
tr1 libstdc++: Fix testsuite with -Wformat 2024-01-06 15:11:33 +00:00
tr2 Update copyright years. 2024-01-03 12:19:35 +01:00
util Update copyright years. 2024-01-03 12:19:35 +01:00
Makefile.am Update copyright years. 2024-01-03 12:19:35 +01:00
Makefile.in libstdc++: Add support for running tests with multiple -std options 2023-09-15 21:57:38 +01:00