gcc/libstdc++-v3
Jonathan Wakely 2f93a2a03a libstdc++: Use non-throwing increment in recursive_directory_iterator [PR 97731]
As described in the PR, the recursive_directory_iterator constructor
calls advance(ec), but ec is a pointer so it calls _Dir::advance(bool).
The intention was to either call advance() or advance(*ec) depending
whether the pointer is null or not.

This fixes the bug and renames the parameter to ecptr to make similar
mistakes less likely in future.

libstdc++-v3/ChangeLog:

	PR libstdc++/97731
	* src/filesystem/dir.cc (recursive_directory_iterator): Call the
	right overload of _Dir::advance.
	* testsuite/experimental/filesystem/iterators/97731.cc: New test.
2020-11-05 18:01:26 +00:00
..
config libstdc++: Export basic_stringbuf constructor [PR 97729] 2020-11-05 18:01:25 +00:00
doc libstdc++: Document istreambuf_iterator base class change [PR 92285] 2020-11-04 12:46:52 +00:00
include libstdc++: Fix multiple definitions of std::exception_ptr functions [PR 97729] 2020-11-05 18:01:25 +00:00
libsupc++ libstdc++: Fix multiple definitions of std::exception_ptr functions [PR 97729] 2020-11-05 18:01:25 +00:00
po
python
scripts libstdc++: Pass CXXFLAGS to check_performance script 2020-10-09 14:01:55 +01:00
src libstdc++: Use non-throwing increment in recursive_directory_iterator [PR 97731] 2020-11-05 18:01:26 +00:00
testsuite libstdc++: Use non-throwing increment in recursive_directory_iterator [PR 97731] 2020-11-05 18:01:26 +00:00
acinclude.m4 libstdc++: Implement C++20 features for <sstream> 2020-10-28 11:56:06 -07:00
aclocal.m4
ChangeLog Daily bump. 2020-11-05 00:16:36 +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
config.h.in
configure libstdc++: Implement C++20 features for <sstream> 2020-10-28 11:56:06 -07:00
configure.ac
configure.host Scope libstdc++ configuration for vxworks to all versions 2020-10-22 16:40:57 +00:00
crossconfig.m4 Scope libstdc++ configuration for vxworks to all versions 2020-10-22 16:40:57 +00:00
fragment.am
linkage.m4
Makefile.am
Makefile.in
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.