Landing: 31d9329f11ad

Project / Subsystem

gcc / ada

Date

2026-02-13

Author

Javier Miranda

Commit

31d9329f11ad93b3deb0c5f83f8a6a75a31f26b7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
31d9329f11ad93b3deb0c5f83f8a6a75a31f26b7
source_type
github
headline
Ada: Implements overriding for tagged type primitives with First_Controlling_Parameter
tldr
This commit implements a rule for overriding primitives of tagged types that have the First_Controlling_Parameter aspect in Ada.
author
Javier Miranda
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • polymorphism
  • tagged types
discussion_id_link
bugzilla_pr
date
2026-02-13T00:00:00.000Z

This commit implements a rule for overriding primitives of tagged types in Ada when they have the First_Controlling_Parameter aspect. When a derived type inherits this aspect, the compiler now ensures that the controlling formals of the overridden parent primitive are also inherited, maintaining consistent behavior in dispatching calls to these primitives.