[Ada] Implicit dereferencing in container indexing
authorGary Dismukes <dismukes@adacore.com>
Sun, 7 Jun 2020 23:41:15 +0000 (19:41 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:18:08 +0000 (05:18 -0400)
commitebc2b117e43191de355187553586aef30048f098
tree92e164376b99c97d3020ef94b28d5868c5140622
parentc6801105e167376e8839007a1539a8167fb09306
[Ada] Implicit dereferencing in container indexing

gcc/ada/

* sem_ch4.adb (Try_Container_Indexing): When the prefix type is
an access type, change it to the designated type, change the
prefix to an explicit dereference, and emit a ?d? warning for
the implicit dereference. Include a ??? comment questioning
whether this is the right context in which to perform the
implicit dereferencing.
gcc/ada/sem_ch4.adb