Landing: 6fa43cc033cb

Project / Subsystem

gcc / ada

Date

2026-09-23

Author

Eric Botcazou

Commit

6fa43cc033cb68684b49f70fca3723a4cf5d1f28

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
6fa43cc033cb68684b49f70fca3723a4cf5d1f28
source_type
github
headline
Ada: Fix extension aggregate rejection with inherited discriminant
tldr
Correctly handles extension aggregates with inherited discriminants in expression functions, preventing double analysis.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • compiler
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-23T00:00:00.000Z

This change fixes an issue where Ada extension aggregates with inherited discriminants were wrongly rejected. The problem occurred in expression functions due to elements being analyzed twice non-idempotently. The fix ensures that the discriminant is not returned early if already present and removes inherited discriminants from the rewritten aggregate’s component list.