2f93a2a03a
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. |
||
---|---|---|
.. | ||
algorithm | ||
any | ||
array | ||
chrono | ||
deque | ||
filesystem | ||
forward_list | ||
functional | ||
iterator | ||
list | ||
map | ||
memory | ||
memory_resource | ||
net | ||
numeric | ||
optional | ||
polymorphic_allocator | ||
propagate_const | ||
random | ||
ratio | ||
set | ||
source_location | ||
string | ||
string_view | ||
system_error | ||
tuple | ||
type_erased_allocator | ||
type_traits | ||
unordered_map | ||
unordered_set | ||
vector | ||
feat-char8_t.cc | ||
feat-cxx14.cc | ||
feat-lib-fund.cc | ||
names.cc |