Landing: 515006c744f2

Project / Subsystem

gcc / ada

Date

2026-03-12

Author

Javier Miranda

Commit

515006c744f22d2707efa6789b2ef10c36e2eaaf

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
515006c744f22d2707efa6789b2ef10c36e2eaaf
source_type
github
headline
Ada: Enable inheritance of pragma/aspect unchecked_union
tldr
Enables derived types to inherit the `unchecked_union` pragma/aspect in Ada, ensuring consistent behavior.
author
Javier Miranda
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • inheritance
  • unchecked_union
discussion_id_link
bugzilla_pr
date
2026-03-12T00:00:00.000Z

This commit ensures that derived types correctly inherit the unchecked_union pragma/aspect in Ada. This means that if a parent type is declared as an unchecked_union, derived types will also inherit this property. This change maintains consistency and avoids unexpected behavior when working with derived types and unchecked unions.