Landing: a9914a7c5496
Project / Subsystem
gcc / gccrs
Date
2026-08-17
Author
Philip Herron
Commit
a9914a7c5496af47feb4c7b6b9a205adb6626f2d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- a9914a7c5496af47feb4c7b6b9a205adb6626f2d
- source_type
- github
- headline
- Port GOTO handling from cp/constexpr.cc to gccrs
- tldr
- GCC Rust compiler gains `goto` handling for constant expressions, ported from C++.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • compiler
- • constexpr
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-17T00:00:00.000Z
The GCC Rust compiler (gccrs) has incorporated handling for goto statements within constant expressions by porting relevant logic from GCC’s C++ frontend (cp/constexpr.cc). This enhancement ensures that goto statements, when used in contexts where constant evaluation is required, are processed correctly, resolving issues related to control flow in compile-time evaluated code.