[Bug libstdc++/71337] temp_directory_path(error_code&) shouldn't throw from !exists(p) || !is_directory(p)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 24 16:49:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71337
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Oct 24 16:45:51 2016
New Revision: 241487
URL: https://gcc.gnu.org/viewcvs?rev=241487&root=gcc&view=rev
Log:
PR71337 fix filesystem::temp_directory_path error handling
PR libstdc++/71337
* src/filesystem/ops.cc (temp_directory_path): Pass error_code
argument to other filesystem operations.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add testcase for inaccessible directory.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/src/filesystem/ops.cc
trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc
More information about the Gcc-bugs
mailing list