Landing: a36191dfb6c4
Project / Subsystem
gcc / ada
Date
2026-09-22
Author
Eric Botcazou
Commit
a36191dfb6c4107985418e16fe255a2b5fd925a7
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- a36191dfb6c4107985418e16fe255a2b5fd925a7
- source_type
- github
- headline
- Ada: Make error messages for static accessibility checks more consistent
- tldr
- Standardizes Ada error messages for static accessibility checks and adds rule references.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler errors
- • diagnostics
- • language standard
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-22T00:00:00.000Z
This commit aims to unify the error messages generated for failed static accessibility checks in Ada. The messages now consistently use phrases like “accessibility level of X is too deep” or “X has deeper accessibility level than”. Additionally, these messages are augmented with references to the relevant rules in the Ada Reference Manual, prioritizing the latest version (Ada 2022 with Amendment 1). The exception is for illegal ‘Access attribute references, which retain their original ‘nonlocal access vs local object’ viewpoint.