Landing: ea4020896601
Project / Subsystem
gcc / libstdc++
Date
2026-06-24
Author
Tomasz Kamiński
Commit
ea402089660102b7eadc9b9c418295549d6aff2e
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- ea402089660102b7eadc9b9c418295549d6aff2e
- source_type
- github
- headline
- libstdc++: Reserve _Pres_type for prefixed hexadecimal floating presentation
- tldr
- Reserves internal type values for future prefixed hexadecimal output in floating-point formatting, avoiding link-time issues.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • formatting
- • cpp20
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-24T00:00:00.000Z
To support the future addition of prefixed hexadecimal floating-point output (e.g., 0x1.23p+4), this patch reserves new _Pres_type values within libstdc++. While no new format specifier is introduced yet, reserving these values prevents linking errors between older and newer versions of the library and prepares for a potential C++ standard defect report. Existing internal uses of _Pres_p and _Pres_P for pointers were adjusted to use hexadecimal integer presentation values instead.