Landing: 8b93d6bf0706
Project / Subsystem
gcc / c++
Date
2026-09-26
Author
Steven Sudit
Commit
8b93d6bf0706bdf7f5116c79a051eb31f0fbab22
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 8b93d6bf0706bdf7f5116c79a051eb31f0fbab22
- source_type
- github
- headline
- Fix double-counting offsets in folded string builtins.
- tldr
- Corrects an issue where offsets were double-counted in folded string builtins like memchr.
- author
- Steven Sudit
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • constexpr
- • optimization
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-26T00:00:00.000Z
A bug in cxx_eval_builtin_function_call caused offsets to be double-counted when folding string builtins like memchr with pointer arguments that already had an offset. This commit ensures the offset is applied correctly, fixing a regression that affected C++26 features and standard library implementations.