Landing: 7fa4a7d62fb8
Project / Subsystem
gcc / libstdc++
Date
2026-07-10
Author
Tomasz Kamiński
Commit
7fa4a7d62fb895088e387457654a8e5c61983157
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 7fa4a7d62fb895088e387457654a8e5c61983157
- source_type
- github
- headline
- libstdc++: Mandate complete type for start_lifetime_as_array.
- tldr
- Ensures `std::start_lifetime_as_array` requires a complete type.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • type safety
- • memory management
- • cpp23
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-10T00:00:00.000Z
The std::start_lifetime_as_array function in libstdc++ now explicitly requires the template type parameter _Tp to be a complete type. This enforces a requirement from P2679R2, preventing potential issues with incomplete types in lifetime extension operations and adding a static assertion and a new negative test case for verification.