Landing: fd0609147022
Project / Subsystem
gcc / libstdc++
Date
2026-08-06
Author
Tomasz Kamiński
Commit
fd060914702256fb7884b287bd21598c9bd47c71
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- fd060914702256fb7884b287bd21598c9bd47c71
- source_type
- github
- headline
- Mark <queue>, <deque> constexpr
- tldr
- C++26 support for deque and queue containers is improved with constexpr correctness, enabling more compile-time operations.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • constexpr
- • c++26
- • containers
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-06T00:00:00.000Z
This commit makes progress towards C++26’s P3372 standard by enabling constexpr for std::deque and std::queue containers and their related internal operations. This allows more of their functionality to be evaluated at compile time. For debug builds, iterator instrumentation is disabled during constant evaluation to avoid issues with mutex locks and non-inline functions. Formatter specializations for queue and priority_queue are also made constexpr.