Landing: 56d64fcb9ea1
Project / Subsystem
gcc / ada
Date
2026-04-30
Author
Javier Miranda
Commit
56d64fcb9ea143785b4b834f1b501a4387188e1b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 56d64fcb9ea143785b4b834f1b501a4387188e1b
- source_type
- github
- headline
- Allow limited type initialization via constructors.
- tldr
- Ada now supports initializing limited types using constructors, enhancing type safety and flexibility.
- author
- Javier Miranda
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • language-feature
- • type-system
- • constructors
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-30T00:00:00.000Z
This significant update to Ada allows the initialization of limited types through constructors, a feature previously unavailable. The change involves extensive modifications across the Ada front-end, including error messaging improvements for constructor names, promotion of Replace_With_Attribute_Definition to a public function, and updates to how allocators and parameterless constructors are handled. This expands the utility of constructors, providing a more robust and idiomatic way to manage initialization for limited types, which cannot be copied or assigned after declaration.