Landing: 0727299846d3
Project / Subsystem
gcc / c++/reflection
Date
2026-04-29
Author
Marek Polacek
Commit
0727299846d3cfaa6c1f537019f9a9e583d07d8d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++/reflection
- patch_id
- —
- commit_hash
- 0727299846d3cfaa6c1f537019f9a9e583d07d8d
- source_type
- github
- headline
- C++/reflection: Propagate cv-qualifiers for SPLICE_SCOPE.
- tldr
- Fixes propagation of const/volatile qualifiers for SPLICE_SCOPE in C++ reflection.
- author
- Marek Polacek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • reflection
- • templates
- • const
- • volatile
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-29T00:00:00.000Z
The tsubst_splice_scope function wasn’t propagating cv-qualifiers (const/volatile) from the template tree to the result, causing assertion failures. This patch fixes this by adding the cv-quals, similar to other places in tsubst. This resolves PR125096.