Landing: c37c865fa87a
Project / Subsystem
gcc / gccrs
Date
2026-06-29
Author
Philip Herron
Commit
c37c865fa87a5997fcf6578a4fc42784c660d0dc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- c37c865fa87a5997fcf6578a4fc42784c660d0dc
- source_type
- github
- headline
- gccrs: Fix typechecking of block expression and labels
- tldr
- gccrs typechecker now correctly handles the context for labels within block expressions.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • typechecking
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-29T00:00:00.000Z
The gccrs compiler’s typechecker has been updated to correctly handle labels within block expressions. Previously, tail expressions in these blocks ignored the context and incorrectly returned the unit type. This change ensures that the label context is respected, resolving a typechecking issue.