Landing: e41707b1ff25

Project / Subsystem

gcc / gcc/ada

Date

2026-09-22

Author

Eric Botcazou

Commit

e41707b1ff25dd152bc280dd9170313b2356d6a6

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/ada
patch_id
—
commit_hash
e41707b1ff25dd152bc280dd9170313b2356d6a6
source_type
github
headline
Ada: Fix run-time crash for imported C arrays without size
tldr
Fixes a runtime crash in Ada caused by incorrect handling of imported C arrays with unspecified sizes.
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-22T00:00:00.000Z

This commit resolves a regression in the Ada compiler that caused run-time crashes when dealing with imported C arrays that were declared without a size. The compiler previously added an indirect indirection for large objects intended for interfaces, which led to issues. The fix prevents this indirection for exported or imported objects, ensuring the compiler or linker will issue errors instead of crashing.