Landing: 24da7b66e8c9

Project / Subsystem

gcc / ada

Date

2026-01-16

Author

Javier Miranda

Commit

24da7b66e8c9f835b0205c715ff7b8f63781233b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
24da7b66e8c9f835b0205c715ff7b8f63781233b
source_type
github
headline
Ada: Fix spurious error with First_Controlling_Parameter type
tldr
Fixes a false error when dispatching primitives have formals with First_Controlling_Parameter types.
author
Javier Miranda
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-01-16T00:00:00.000Z

The Ada frontend was incorrectly reporting an error when a dispatching primitive of a tagged type had additional formal parameters with types that have the First_Controlling_Parameter aspect. This commit corrects this behavior by ensuring that such formals are not considered candidate controlling parameters when they are not the first formal parameter of the dispatching primitive.