gcc/libstdc++-v3
Jonathan Wakely b8018e5c5e libstdc++: Make std::pointer_traits SFINAE-friendly [PR96416]
This implements the resolution I'm proposing for LWG 3545, to avoid hard
errors when using std::to_address for types that make pointer_traits
ill-formed.

Consistent with std::iterator_traits, instantiating std::pointer_traits
for a non-pointer type will be well-formed, but give an empty type with
no member types. This avoids the problematic cases for std::to_address.
Additionally, the pointer_to member is now only declared when the
element type is not cv void (and for C++20, when the function body would
be well-formed). The rebind member was already SFINAE-friendly in our
implementation.

libstdc++-v3/ChangeLog:

	PR libstdc++/96416
	* include/bits/ptr_traits.h (pointer_traits): Reimplement to be
	SFINAE-friendly (LWG 3545).
	* testsuite/20_util/pointer_traits/lwg3545.cc: New test.
	* testsuite/20_util/to_address/1_neg.cc: Adjust dg-error line.
	* testsuite/20_util/to_address/lwg3545.cc: New test.
2021-11-25 23:12:14 +00:00
..
config libstdc++: Fix ctype changed after newlib update. 2021-11-19 08:48:11 +00:00
doc libstdc++: Deprecate std::unexpected and handler functions 2021-11-04 20:53:29 +00:00
include libstdc++: Make std::pointer_traits SFINAE-friendly [PR96416] 2021-11-25 23:12:14 +00:00
libsupc++ libstdc++: Fix std::type_info::before for ARM [PR103240] 2021-11-17 17:21:24 +00:00
po Update copyright years. 2021-01-04 10:26:59 +01:00
python libstdc++: Fix pretty printing of std::unique_ptr [PR103086] 2021-11-04 22:50:02 +00:00
scripts libstdc++: Improve generated man pages for libstdc++ 2021-10-21 22:24:57 +01:00
src libstdc++: Use __is_single_threaded in locale initialization 2021-11-19 20:22:52 +00:00
testsuite libstdc++: Make std::pointer_traits SFINAE-friendly [PR96416] 2021-11-25 23:12:14 +00:00
acinclude.m4 libstdc++: Replace AC_CACHE_VAL with AC_CACHE_CHECK 2021-11-18 13:56:33 +00:00
aclocal.m4
ChangeLog Daily bump. 2021-11-25 00:16:29 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020 libstdc++: Fix typo in ChangeLog-2020 2021-01-13 11:02:13 +00:00
config.h.in libstdc++: Support getentropy and arc4random in std::random_device 2021-11-09 14:40:33 +00:00
configure libstdc++: Replace AC_CACHE_VAL with AC_CACHE_CHECK 2021-11-18 13:56:33 +00:00
configure.ac libstdc++: Support getentropy and arc4random in std::random_device 2021-11-09 14:40:33 +00:00
configure.host Scope libstdc++ configuration for vxworks to all versions 2020-10-22 16:40:57 +00:00
crossconfig.m4 libstdc++: Check for TLS support on mingw cross-compilers 2021-09-15 09:49:33 +01:00
fragment.am libstdc++: Add C++ runtime support for new 128-bit long double format 2020-12-16 23:25:01 +00:00
linkage.m4
Makefile.am Update copyright years. 2021-01-04 10:26:59 +01:00
Makefile.in libstdc++: Add C++ runtime support for new 128-bit long double format 2020-12-16 23:25:01 +00:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.