Landing: d6fc88f22812
Project / Subsystem
gcc / c++
Date
2026-05-07
Author
Jakub Jelinek
Commit
d6fc88f22812cc74ddb36871e01f3d56ef383334
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- d6fc88f22812cc74ddb36871e01f3d56ef383334
- source_type
- github
- headline
- C++: Ignore consteval-only uses inside USING_STMT.
- tldr
- Prevents USING_STMT operands from being considered as consteval-only uses in the C++ compiler.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • consteval
- • using statement
- • reflection
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-07T00:00:00.000Z
This commit modifies the C++ compiler to prevent operands within a USING_STMT from being counted as consteval-only uses. The change ensures that the compiler doesn’t incorrectly restrict the use of variables or expressions within a USING_STMT to only consteval contexts (PR125184).