Landing: 1025bb39ef4b
Project / Subsystem
gcc / gcc/ada
Date
2026-05-13
Author
Steve Baird
Commit
1025bb39ef4bf810ff996530ba49955749242824
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/ada
- patch_id
- —
- commit_hash
- 1025bb39ef4bf810ff996530ba49955749242824
- source_type
- github
- headline
- The Ada front end fixes assertion error in subunit attribute references
- tldr
- The Ada front end now correctly handles attribute references within separate subunits, resolving a compiler `Assertion_Error`.
- author
- Steve Baird
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • bugfix
- • compiler-internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-13T00:00:00.000Z
This commit resolves a compiler Assertion_Error that occurred when an attribute reference was used within an Ada subunit. The issue arose because the compiler incorrectly assumed a subunit subprogram body lacked an enclosing declaration list, leading it down an incorrect code path. The fix in exp_attr.adb ensures that the subunit case is properly identified, preventing the assertion failure and allowing correct compilation of attribute references in separate subunits.