Landing: 2dde6c91d0f0
Project / Subsystem
gcc / gcc
Date
2026-05-05
Author
Iain Buclaw
Commit
2dde6c91d0f0df9ebef57955b92a6dfd30bea480
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 2dde6c91d0f0df9ebef57955b92a6dfd30bea480
- source_type
- github
- headline
- Fixes ICE in D compiler due to forward reference of nested struct.
- tldr
- Avoids an internal compiler error in the D compiler when a forward reference changes the type mode of an enclosing struct.
- author
- Iain Buclaw
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • d
- • compiler
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-05T00:00:00.000Z
Fixes an internal compiler error in the D compiler that occurred when a forward reference to a nested struct changed the type mode of its enclosing struct. The fix involves setting TREE_ADDRESSABLE early and moving mode setting and propagation to finish_aggregate_mode and finish_aggregate_type, respectively.