Landing: b8e6ea93a483
Project / Subsystem
gcc / ada
Date
2026-01-15
Author
Viljar Indus
Commit
b8e6ea93a483f5837ea9aec70efdf18ef763b1cb
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- b8e6ea93a483f5837ea9aec70efdf18ef763b1cb
- source_type
- github
- headline
- Ada: Improve handling of Ghost => True/False for Abstract_State
- tldr
- Enhances handling of Ghost aspects for Abstract_State pragmas, adding error checks for invalid usage.
- author
- Viljar Indus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • pragmas
- • ghost state
- • abstract state
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-15T00:00:00.000Z
This commit improves the handling of Ghost => True/False for Abstract_State pragmas. It ensures that an Assertion_Level is assigned when Ghost => True is used, and it adds errors if Ghost => False is used within a ghost package, or if the expression used for Ghost is not static. These changes enhance the correctness and clarity of using ghost state in Ada code.