Landing: bee29e7e2a88

Project / Subsystem

gcc / ada

Date

2026-05-25

Author

Viljar Indus

Commit

bee29e7e2a883f6831b24b5290b5e7067a26981b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
bee29e7e2a883f6831b24b5290b5e7067a26981b
source_type
github
headline
Ada: Avoids suspicious index warnings in expanded code.
tldr
The Ada compiler now prevents spurious 'suspicious index' warnings that arose in optimized or expanded code by checking only source-native elements.
author
Viljar Indus
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler-warnings
  • optimization
discussion_id_link
bugzilla_pr
date
2026-05-25T00:00:00.000Z

The Ada compiler was generating misleading ‘suspicious index’ warnings in code that had been optimized or expanded, where the original range constraints of variables were lost. The compiler will now only check elements originating directly from the source code, thus avoiding these erroneous warnings. This improves the clarity of compiler output by reducing false positives, allowing developers to focus on genuine issues.