Landing: 8663c3db6e61
Project / Subsystem
gcc / libstdc++
Date
2026-07-07
Author
Jonathan Wakely
Commit
8663c3db6e6177b96b7770b7d13ec7b74e1bac1c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 8663c3db6e6177b96b7770b7d13ec7b74e1bac1c
- source_type
- github
- headline
- libstdc++: Adjust filesystem::read_symlink error handling on Windows.
- tldr
- Corrected error handling for `std::filesystem::read_symlink` on Windows.
- author
- Jonathan Wakely
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • filesystem
- • libstdc++
- • windows
- • error handling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-07T00:00:00.000Z
Error handling for std::filesystem::read_symlink on Windows has been adjusted to use std::error_code instead of errno. Helper functions like __open_for_stat and __check_handle_type now accept a std::error_code parameter, and errno is set only within the Windows-specific __stat_windows function. This change ensures consistent error reporting across different platforms and C++ APIs.