diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-04-05 17:56:18 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-04-05 17:56:18 +0100 |
commit | 5ed5c0da8ba2491d765ecb260e1babaa83a38b12 (patch) | |
tree | a63eb67092d3a7108921708e92aa5568ddf6fbf9 /gcc/fortran/class.c | |
parent | d96f11a2720c8ddfc3d181b181cfaadd888323cd (diff) | |
download | gcc-5ed5c0da8ba2491d765ecb260e1babaa83a38b12.zip gcc-5ed5c0da8ba2491d765ecb260e1babaa83a38b12.tar.gz gcc-5ed5c0da8ba2491d765ecb260e1babaa83a38b12.tar.bz2 |
Fix directory_iterator handling of DT_UNKNOWN
We need to handle DT_UNKNOWN earlier, not only during directory
recursion, so that the cached file_type value in the directory_entry
won't be used.
* src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
d_type == DT_UNKNOWN immediately.
(_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
handling here.
* testsuite/27_io/filesystem/iterators/caching.cc: New test.
From-SVN: r270172
Diffstat (limited to 'gcc/fortran/class.c')
0 files changed, 0 insertions, 0 deletions