Landing: f71f2f5947b8

Project / Subsystem

gcc / gccrs

Date

2026-09-07

Author

Philip Herron

Commit

f71f2f5947b8935d1ba4934831482bb3c9b4d9ff

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
f71f2f5947b8935d1ba4934831482bb3c9b4d9ff
source_type
github
headline
gccrs: Fix const evaluation for intrinsic calls.
tldr
Ensures const evaluation works correctly for intrinsic calls by managing a const context stack.
author
Philip Herron
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • const-eval
  • • rustc
discussion_id_link
—
bugzilla_pr
—
date
2026-09-07T00:00:00.000Z

This commit addresses an issue in gccrs where constant evaluation could fail during type-checking. Previously, resolving function signatures separately from their bodies could lead to unresolved function calls within a const context. The fix introduces a const context stack, allowing the compiler to override normal behavior during const evaluation and ensure that necessary function definitions are available, resolving Rust-GCC/gccrs#4855.