https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101709
--- Comment #3 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:df783ecbaaea340297df8a3bd6666068ce131a33 commit r11-9921-gdf783ecbaaea340297df8a3bd6666068ce131a33 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Aug 2 15:52:41 2021 +0100 libstdc++: Fix filesystem::temp_directory_path [PR101709] Signed-off-by: Jonathan Wakely <jwak...@redhat.com> libstdc++-v3/ChangeLog: PR libstdc++/101709 * src/filesystem/ops-common.h (get_temp_directory_from_env): Add error_code parameter. * src/c++17/fs_ops.cc (fs::temp_directory_path): Pass error_code argument to get_temp_directory_from_env and check it. * src/filesystem/ops.cc (fs::temp_directory_path): Likewise. (cherry picked from commit 38fb24ba4d67254cea78731fc8d961903dad9646)