PR libstdc++/86597 directory_entry observers should clear error_code
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Aug 2018 13:09:19 +0000 (14:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 8 Aug 2018 13:09:19 +0000 (14:09 +0100)
commitd3f3c68099db421a58a9b8989781e0c4db31c61e
tree29adf3859b0ee19fd8c4b9249d7b7b0c61f48086
parent9f3c21d62131d5b7224de862061d133d3dba6514
PR libstdc++/86597 directory_entry observers should clear error_code

PR libstdc++/86597
* include/bits/fs_dir.h (directory_entry::_M_file_type(error_code&)):
Clear error_code when cached type is used.
* testsuite/27_io/filesystem/directory_entry/86597.cc: New test.

From-SVN: r263397
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_dir.h
libstdc++-v3/testsuite/27_io/filesystem/directory_entry/86597.cc [new file with mode: 0644]