gcc/libstdc++-v3/testsuite/experimental
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
..
algorithm Update copyright years. 2020-01-01 12:51:42 +01:00
any libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
array Update copyright years. 2020-01-01 12:51:42 +01:00
chrono Update copyright years. 2020-01-01 12:51:42 +01:00
deque Update copyright years. 2020-01-01 12:51:42 +01:00
filesystem libstdc++: Use non-throwing increment in recursive_directory_iterator [PR 97731] 2020-11-05 18:01:26 +00:00
forward_list Update copyright years. 2020-01-01 12:51:42 +01:00
functional Update copyright years. 2020-01-01 12:51:42 +01:00
iterator Update copyright years. 2020-01-01 12:51:42 +01:00
list Update copyright years. 2020-01-01 12:51:42 +01:00
map Update copyright years. 2020-01-01 12:51:42 +01:00
memory libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
memory_resource libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
net libstdc++: Make Networking TS work without gthreads [PR 89760] 2020-08-11 16:16:22 +01:00
numeric libstdc++: Optimise GCD algorithms 2020-09-03 12:46:13 +01:00
optional PR libstdc++/95915 2020-06-29 00:36:38 +03:00
polymorphic_allocator Update copyright years. 2020-01-01 12:51:42 +01:00
propagate_const Update copyright years. 2020-01-01 12:51:42 +01:00
random Update copyright years. 2020-01-01 12:51:42 +01:00
ratio Update copyright years. 2020-01-01 12:51:42 +01:00
set Update copyright years. 2020-01-01 12:51:42 +01:00
source_location libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
string Update copyright years. 2020-01-01 12:51:42 +01:00
string_view Update copyright years. 2020-01-01 12:51:42 +01:00
system_error Update copyright years. 2020-01-01 12:51:42 +01:00
tuple Update copyright years. 2020-01-01 12:51:42 +01:00
type_erased_allocator Update copyright years. 2020-01-01 12:51:42 +01:00
type_traits PR libstdc++/95915 2020-06-29 00:36:38 +03:00
unordered_map Update copyright years. 2020-01-01 12:51:42 +01:00
unordered_set Update copyright years. 2020-01-01 12:51:42 +01:00
vector Update copyright years. 2020-01-01 12:51:42 +01:00
feat-char8_t.cc libstdc++: P1423R3 char8_t remediation (3/4) 2019-11-29 17:43:46 +00:00
feat-cxx14.cc Use dg-do preprocess instead of compile for tests 2016-08-23 11:13:31 +01:00
feat-lib-fund.cc Use dg-do preprocess instead of compile for tests 2016-08-23 11:13:31 +01:00
names.cc Update copyright years. 2020-01-01 12:51:42 +01:00