Landing: 168233d446e7
Project / Subsystem
gcc / libstdc++
Date
2026-09-29
Author
Tomasz Kamiński
Commit
168233d446e7b584debe4e8efa8719bbc3389ed1
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 168233d446e7b584debe4e8efa8719bbc3389ed1
- source_type
- github
- headline
- libstdc++: Unconditionally enable asserts in repeat_view::_Iterator
- tldr
- Improves iterator robustness in `repeat_view` by ensuring necessary assertions are always enabled, addressing LWG 4624.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • C++20
- • ranges
- • iterator
- • assertions
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-29T00:00:00.000Z
This change ensures that assertions related to iterator validity in std::ranges::repeat_view are always enabled, regardless of the bound type. Previously, checks for a non-negative current iterator position were disabled when the bound was unreachable_sentinel_t, which was incorrect. Additionally, internal constructor assertions are removed as they are unreachable in normal use.