[Bug libstdc++/86597] directory_entry::exist et al forget to clear the error_code.

2018-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597

Jonathan Wakely  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jonathan Wakely  ---
Fixed, thanks for the report.

[Bug libstdc++/86597] directory_entry::exist et al forget to clear the error_code.

2018-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597

--- Comment #2 from Jonathan Wakely  ---
Author: redi
Date: Wed Aug  8 15:33:32 2018
New Revision: 263412

URL: https://gcc.gnu.org/viewcvs?rev=263412=gcc=rev
Log:
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.

Added:
   
branches/gcc-8-branch/libstdc++-v3/testsuite/27_io/filesystem/directory_entry/
   
branches/gcc-8-branch/libstdc++-v3/testsuite/27_io/filesystem/directory_entry/86597.cc
Modified:
branches/gcc-8-branch/libstdc++-v3/ChangeLog
branches/gcc-8-branch/libstdc++-v3/include/bits/fs_dir.h

[Bug libstdc++/86597] directory_entry::exist et al forget to clear the error_code.

2018-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597

--- Comment #1 from Jonathan Wakely  ---
Author: redi
Date: Wed Aug  8 13:09:19 2018
New Revision: 263397

URL: https://gcc.gnu.org/viewcvs?rev=263397=gcc=rev
Log:
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.

Added:
trunk/libstdc++-v3/testsuite/27_io/filesystem/directory_entry/
trunk/libstdc++-v3/testsuite/27_io/filesystem/directory_entry/86597.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/fs_dir.h

[Bug libstdc++/86597] directory_entry::exist et al forget to clear the error_code.

2018-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597

Jonathan Wakely  changed:

   What|Removed |Added

   Target Milestone|--- |8.3

[Bug libstdc++/86597] directory_entry::exist et al forget to clear the error_code.

2018-07-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2018-07-31
   Assignee|unassigned at gcc dot gnu.org  |redi at gcc dot gnu.org
 Ever confirmed|0   |1