Landing: 5822a843ce51

Project / Subsystem

gcc / ada

Date

2026-01-23

Author

Marc Poulhiès

Commit

5822a843ce51c6af030311af4f2de66727d480dd

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
5822a843ce51c6af030311af4f2de66727d480dd
source_type
github
headline
Ada: Use correct scope when unnesting a subprogram.
tldr
The Ada compiler fixes a bug where incorrect scope was used when unnesting a subprogram, preventing a potential assertion failure.
author
Marc Poulhiès
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler
  • bugfix
  • scope
discussion_id_link
bugzilla_pr
date
2026-01-23T00:00:00.000Z

The Ada compiler fixes an issue during unnesting of subprograms where the Current_Scope was being incorrectly used, potentially leading to a failed assertion. The fix involves pushing and popping the current subprogram entity as the scope around the Analyze call in exp_unst.adb.