Landing: 0f9904afc603
Project / Subsystem
gcc / gcc
Date
2026-04-18
Author
Iain Buclaw
Commit
0f9904afc60329beb2a97f73fa8239530288d0e6
Source
github
Impact
6/10
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 0f9904afc60329beb2a97f73fa8239530288d0e6
- source_type
- github
- headline
- D: Fix ICE in gimplify_var_or_parm_decl.
- tldr
- Fixes an internal compiler error (ICE) in the D frontend related to assert statements.
- why_it_matters
- Resolves a compiler crash, improving the reliability of the D language frontend and preventing disruptions for D developers.
- author
- Iain Buclaw
- impact_score
- 6
- impact_rationale
- Addresses an ICE, preventing compiler crashes and improving the development experience for D programmers.
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • D
- • ICE
- • compiler
- • codegen
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-18T00:00:00.000Z
An internal compiler error (ICE) was triggered in the D frontend during the gimplification of variable or parameter declarations, specifically related to assert statements. The assert’s result type was not consistently matching its expression type. This patch ensures type consistency and introduces a new build_trap_call function to streamline code generation for built-in trap calls, used in various parts of the D frontend.