Landing: 77cb5aed66c5
Project / Subsystem
gcc / libstdc++
Date
2026-08-10
Author
Tomasz Kamiński
Commit
77cb5aed66c500758bde3a9edc4f4bff5bfce6ba
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 77cb5aed66c500758bde3a9edc4f4bff5bfce6ba
- source_type
- github
- headline
- libstdc++: Make std::stack constexpr.
- tldr
- std::stack and its formatting capabilities are now constexpr.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • constexpr
- • c++
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-10T00:00:00.000Z
The std::stack container adaptor and its associated formatting functions have been made constexpr, implementing parts of the P3372 and P3391R2 proposals. This allows std::stack to be used in compile-time contexts, enhancing its utility for constant evaluation and improving compile-time performance for certain applications.