Landing: d3b6fc8b7815

Project / Subsystem

gcc / ada

Date

2026-03-04

Author

Eric Botcazou

Commit

d3b6fc8b78153be235141684900788b7888add58

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
d3b6fc8b78153be235141684900788b7888add58
source_type
github
headline
Ada: Fix bogus visibility error for inherited operator of null extension.
tldr
The compiler no longer incorrectly flags visibility errors for inherited operators in null extensions.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • inheritance
  • visibility
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-03-04T00:00:00.000Z

The Ada compiler incorrectly flagged visibility errors when an inherited operator of a null extension had a heterogeneous profile and the extension was declared in the same scope as the type of a non-controlling parameter. The fix involves correcting how Find_Dispatching_Type determines the dispatching type and manually setting the Has_Controlling_Result flag on wrappers, ensuring correct visibility checking for inherited operators.