Landing: ee0bf66ed6c2
Project / Subsystem
gcc / ada
Date
2026-09-23
Author
Eric Botcazou
Commit
ee0bf66ed6c2acde588a4275df9c21cc8d67ff8d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- ee0bf66ed6c2acde588a4275df9c21cc8d67ff8d
- source_type
- github
- headline
- Ada: Fix discriminant handling in derived private types
- tldr
- Correctly propagates discriminant and constrained status when deriving constrained private types with defaulted discriminants.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • type system
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-23T00:00:00.000Z
This change fixes an issue in Ada where the Has_Constrained_Partial_View flag was not correctly inherited when deriving constrained private types that had defaulted discriminants. The fix ensures that both the partial and full views of derived types correctly inherit this flag from their parent types, maintaining correct type behavior.