gcc/libstdc++-v3
Jonathan Wakely b20b7f7e88 libstdc++: Fix std::to_address for debug iterators (PR 93960)
It should be valid to use std::to_address on a past-the-end iterator,
but the debug mode iterators do a check for dereferenceable in their
operator->(). That check is generally useful, so rather than remove it
this changes std::__to_address to identify a debug mode iterator and
use base().operator->() to skip the check.

Backport from mainline
2020-04-03  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/93960
	* include/bits/ptr_traits.h (__to_address): Add special case for debug
	iterators, to avoid dereferenceable check.
	* testsuite/20_util/to_address/1_neg.cc: Adjust dg-error line number.
	* testsuite/20_util/to_address/debug.cc: New test.
2020-04-03 12:00:07 +01:00
..
config x32: Update baseline_symbols.txt 2020-03-01 06:17:03 -08:00
doc libstdc++: Fix recent documentation changes 2020-01-24 11:18:29 +00:00
include libstdc++: Fix std::to_address for debug iterators (PR 93960) 2020-04-03 12:00:07 +01:00
libsupc++ libstdc++: Fix freestanding build (PR 92376) 2020-02-26 14:24:06 +00:00
po PR libstdc++/89466 avoid slow xsltproc command in configure 2019-02-27 11:25:44 +00:00
python Fix Xmethod for shared_ptr::use_count() 2019-09-11 12:40:23 +01:00
scripts Update copyright years. 2019-01-01 13:31:55 +01:00
src libstdc++: Handle type-changing path concatenations (PR 94063) 2020-03-12 17:39:05 +00:00
testsuite libstdc++: Fix std::to_address for debug iterators (PR 93960) 2020-04-03 12:00:07 +01:00
ChangeLog libstdc++: Fix std::to_address for debug iterators (PR 93960) 2020-04-03 12:00:07 +01: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 Update copyright years. 2017-01-01 13:07:43 +01:00
ChangeLog-2017 Update copyright years. 2018-01-03 11:03:58 +01:00
ChangeLog-2018 Update copyright years. 2019-01-01 13:31:55 +01:00
Makefile.am Update copyright years. 2019-01-01 13:31:55 +01:00
Makefile.in PR libstdc++/89466 avoid slow xsltproc command in configure 2019-02-27 11:25:44 +00:00
README
acinclude.m4 libstdc++: Replace glibc-specific check for clock_gettime (PR 93325) 2020-02-26 15:32:34 +00:00
aclocal.m4 Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
config.h.in Build filesystem library with large file support 2020-01-13 18:51:22 +00:00
configure libstdc++: Replace glibc-specific check for clock_gettime (PR 93325) 2020-02-26 15:32:34 +00:00
configure.ac Build filesystem library with large file support 2020-01-13 18:51:22 +00:00
configure.host configure.host (abi_baseline_pair): Adjust for SPARC64/Linux. 2019-02-22 07:25:52 +00:00
crossconfig.m4 PR libstdc++/89460 Fix Networking TS test failures on HP-UX 2019-03-11 16:28:11 +00:00
fragment.am PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 14:18:47 +01:00
linkage.m4

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.