Landing: 4af34d33c9e0

Project / Subsystem

gcc / libstdc++

Date

2026-08-13

Author

Tomasz Kamiński

Commit

4af34d33c9e006eb8a142fe09910e8d25c188a48

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
4af34d33c9e006eb8a142fe09910e8d25c188a48
source_type
github
headline
Libstdc++ ignores filesystem::canonical errors for /etc/localtime.
tldr
GCC's libstdc++ now gracefully handles errors from filesystem::canonical for /etc/localtime.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • filesystem
  • • error handling
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

The libstdc++ library now uses an error_code overload of filesystem::canonical to ignore errors when resolving the /etc/localtime path. Previously, this could lead to exceptions being thrown, while other error-handling mechanisms for similar paths returned an empty string. This change ensures consistent error handling across different path resolution methods, preventing unexpected program termination.