Landing: 9ad0debac132
Project / Subsystem
gcc / ada
Date
2026-05-16
Author
Eric Botcazou
Commit
9ad0debac132b46496171e83f120dff1bbb3fc17
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 9ad0debac132b46496171e83f120dff1bbb3fc17
- source_type
- github
- headline
- Improve the accuracy of Function_Call_Or_Allocator_Level
- tldr
- The Ada compiler's `Function_Call_Or_Allocator_Level` now correctly determines the accessibility level for object declarations, mirroring `Accessibility_Level`.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • semantics
- • accessibility
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-16T00:00:00.000Z
This update rectifies an inaccuracy in the Function_Call_Or_Allocator_Level function within the Ada compiler. Previously, for object declarations, it returned the static scope depth, deviating from its parent function Accessibility_Level which uses the dynamic scope. The change ensures consistency by recursing on the defining identifier for object declarations and simplifies related expander code by calling Accessibility_Level more directly.