Landing: f9a4b558c242

Project / Subsystem

gcc / ada

Date

2026-09-23

Author

Eric Botcazou

Commit

f9a4b558c24290665ebaf0d0c11246187c87a367

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
f9a4b558c24290665ebaf0d0c11246187c87a367
source_type
github
headline
Ada: Fix bounds check for nonstatic array and string literal assignments
tldr
Ensures Ada string literals assigned to nonstatic arrays respect index type bounds.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • semantics
  • • arrays
  • • safety
discussion_id_link
—
bugzilla_pr
—
date
2026-09-23T00:00:00.000Z

This change fixes an issue in Ada where the bounds of a string literal assigned to a nonstatic array were not correctly checked against the index type’s bounds. It ensures that the computed high bound of the literal is validated, preventing potential out-of-bounds issues and maintaining type safety.