https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97731
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:9eed5712110b63a0021358cbf195d32c5b372638 commit r11-11049-g9eed5712110b63a0021358cbf195d32c5b372638 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Feb 1 14:02:56 2022 +0000 libstdc++: Add more tests for filesystem directory iterators The PR 97731 test was added to verify a fix to the Filesystem TS code, but we should also have the same test to avoid similar regressions in the C++17 std::filesystem code. Also add tests for directory_options::follow_directory_symlink libstdc++-v3/ChangeLog: * testsuite/27_io/filesystem/iterators/97731.cc: New test. * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: Check follow_directory_symlink option. * testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc: Likewise. (cherry picked from commit 2dc2f417288d4f0839b4bc01388e676ee343f941)