[Ada] Spurious error on iterator over container with modified private part
commit4056d9abfa67e3584f68e1c2ecb8de9bc05a68cf
authorEd Schonberg <schonberg@adacore.com>
Tue, 10 Nov 2020 15:16:49 +0000 (10 10:16 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:17 +0000 (30 09:16 -0500)
tree91e5ed194b071715f788090a92387b5148f44b73
parent602c7bc2153591941a1f3c0edc4cb370910d2d95
[Ada] Spurious error on iterator over container with modified private part

gcc/ada/

* exp_ch5.adb (Expand_Iterator_Loop_Over_Container): Check the
signature of the private operation Get_Element_Access to prevent
accidental use of a user-defined homonym subprogram.
gcc/ada/exp_ch5.adb