Landing: da252eaaf495

Project / Subsystem

gcc / ada

Date

2026-05-20

Author

Eric Botcazou

Commit

da252eaaf495e29709aa0fc084ec1b2fbacc464e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
da252eaaf495e29709aa0fc084ec1b2fbacc464e
source_type
github
headline
Ada fixes internal error on abstract primitive with access result
tldr
GCC's Ada front end correctly sets the scope for derived subprogram access types, resolving an internal error.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • bugfix
  • compiler internals
discussion_id_link
bugzilla_pr
date
2026-05-20T00:00:00.000Z

This commit corrects an internal error in the Ada front end related to abstract primitive subprograms returning access types. The previous fix addressed a symptom, but the root cause stemmed from incorrectly assigning the subprogram itself as the scope for the anonymous access result type of derived subprograms. The compiler now correctly assigns the scope of the new anonymous access type to the scope of the derived type, preventing compiler crashes.