Landing: 9113cc2e0a43
Project / Subsystem
gcc / ada
Date
2026-02-19
Author
Marc Poulhiès
Commit
9113cc2e0a43a7b0c599d26e56f7fef5c4dc37d9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 9113cc2e0a43a7b0c599d26e56f7fef5c4dc37d9
- source_type
- github
- headline
- Fix freezing of nested discriminated type
- tldr
- Fixes a compiler crash due to incorrect tree construction when freezing the base type of a nested discriminated type in Ada.
- author
- Marc Poulhiès
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • discriminated type
- • compiler crash
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-19T00:00:00.000Z
The Ada compiler crashed when unnesting the predicate function of a nested discriminated type due to an incorrect tree. The incorrect tree happened because the freeze node was being created for the base type of a discriminated type but without adjusting the scope and the visible declarations. This commit rectifies this by adjusting the freezing process, resolving the crash.