Landing: 3ac5df1a7aaf

Project / Subsystem

gcc / ada

Date

2026-09-29

Author

Eric Botcazou

Commit

3ac5df1a7aaf9c986c367256cde09cf1d8f20c2b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
3ac5df1a7aaf9c986c367256cde09cf1d8f20c2b
source_type
github
headline
Ada: Fix another fallout of recent changes to handling of static aggregates
tldr
Prevents incorrect static aggregate flag on Ada arrays with dynamic component subtypes.
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-29T00:00:00.000Z

This commit addresses an issue where the Compile_Time_Known_Aggregate flag was incorrectly set for Ada array aggregates. This occurred when all elements were static, but the array’s subtype was dynamic due to its component subtype being dynamic. The compiler now prevents setting this flag in such cases, ensuring these aggregates are handled correctly by the backend.