[Ada] Renamed equality leads to spurious errors
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 14 Nov 2018 11:41:20 +0000 (11:41 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 14 Nov 2018 11:41:20 +0000 (11:41 +0000)
commit0715a2a8d257d647ee97521316ef87ac150c1977
tree16bdc68929370f39f7ec2d03ea8c256485ec7eb4
parentb3b3ada9a000ee3ebda203debead999a37fa1094
[Ada] Renamed equality leads to spurious errors

The following patch corrects the search for the equality function to
handle cases where the equality could be a renaming of another routine.
No simple reproducer possible because this requires PolyORB.

2018-11-14  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* exp_ch4.adb (Find_Aliased_Equality): New routine.
(Find_Equality): Reimplemented.
(Is_Equality): New routine.

From-SVN: r266121
gcc/ada/ChangeLog
gcc/ada/exp_ch4.adb