Landing: 2bf952fd2524
Project / Subsystem
gcc / ada
Date
2026-05-01
Author
Steve Baird
Commit
2bf952fd2524312529921d6cd1ee7ea80096f67c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 2bf952fd2524312529921d6cd1ee7ea80096f67c
- source_type
- github
- headline
- Avoid use-before-definition within library unit subprograms.
- tldr
- The compiler now correctly inserts attribute-related subprograms for library units, preventing use-before-definition errors.
- author
- Steve Baird
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler-internals
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-01T00:00:00.000Z
This change addresses a bug where Ada’s attribute subprograms were sometimes inserted incorrectly for library units, leading to crashes. The fix ensures that the compiler properly handles library unit subprogram bodies when generating attribute subprograms, avoiding cases where a procedure is called before its declaration is visible. This improves compiler stability and correctness when using attributes in Ada.