ada: Error in prefix-notation call
commit7c09fcfcf2b922905a69ad8ab98609f42095f49a
authorBob Duff <duff@adacore.com>
Thu, 12 Oct 2023 19:52:27 +0000 (12 15:52 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 Nov 2023 09:15:03 +0000 (7 10:15 +0100)
treef1911486a16356e176dd9e1ac248d3aefbd247d5
parentfe11fa6bd48a781c6acf0416aff1568e0d66f077
ada: Error in prefix-notation call

The compiler gives a wrong error for a call of the form X.Y(...)
when Y is inherited indirectly via an interface.

gcc/ada/

* sem_ch4.adb (Is_Private_Overriding): Return True in the case
where a primitive operation is publicly inherited but privately
overridden.
gcc/ada/sem_ch4.adb