Landing: 535a429af371

Project / Subsystem

gcc / ada

Date

2026-08-19

Author

Eric Botcazou

Commit

535a429af371c852999fc9a670f95ee65deb52cd

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
535a429af371c852999fc9a670f95ee65deb52cd
source_type
github
headline
Ada: Fix infinite loop on reduction expression with -gnatVa
tldr
Resolves an infinite loop in Ada's reduction expression analysis when the -gnatVa flag is used.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • compiler
  • • bugfix
  • • regression
discussion_id_link
—
bugzilla_pr
—
date
2026-08-19T00:00:00.000Z

A regression in the Ada compiler’s analysis of reduction expressions, triggered by the -gnatVa flag, caused an infinite loop due to invalid tree sharing. This commit prevents the Relocate_Node function from being called on the original, unanalyzed tree, thus fixing the loop and the underlying invalid sharing.