]> gcc.gnu.org Git - gcc.git/commit
[Ada] Fix hiding of user-defined operator that is not a homograph
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 13 Jan 2022 23:05:54 +0000 (00:05 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 10 May 2022 08:19:23 +0000 (08:19 +0000)
commit7f8053225de072fed9c4822e589c853a6f5e47c4
tree3cca2df6a508114bb16be38e971920fb4d707482
parent6798cad793d9581936f2de76c85a22a5449d7358
[Ada] Fix hiding of user-defined operator that is not a homograph

This adds a missing test for the presence of a homograph when applying
the RM 8.4(10) clause about the visibility of operators, and removes
resolution code made obsolete by the change.  There is also a fixlet
for a previously undetected ambiguity in the runtime.

gcc/ada/

* sem_res.adb (Resolve_Eqyality_Op): Remove obsolete code.
(Resolve_Op_Not): Likewise.
* sem_type.adb (Disambiguate): Add missing test for RM 8.4(10).
* libgnat/s-dwalin.adb (Enable_Cache): Fix ambiguity.
(Symbolic_Address): Likewise.

gcc/testsuite/

* gnat.dg/equal7.adb: Add expected error messages (code is now
illegal).
gcc/ada/libgnat/s-dwalin.adb
gcc/ada/sem_res.adb
gcc/ada/sem_type.adb
gcc/testsuite/gnat.dg/equal7.adb
This page took 0.074625 seconds and 6 git commands to generate.