[Ada] Improve error messages for dot notation when -gnatX not used
authorYannick Moy <moy@adacore.com>
Fri, 8 Oct 2021 14:19:50 +0000 (16:19 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Dec 2021 10:24:40 +0000 (10:24 +0000)
commit790b8752100e699d98140f0b094cbf5b893aa7dd
treee7d313e8e288969e63fee93dfca9cbeb0791f5cd
parentbe8de8e127b06017f2c3602c81de99ad5937ef9d
[Ada] Improve error messages for dot notation when -gnatX not used

gcc/ada/

* einfo.ads (Direct_Primitive_Operations): Update the doc to
indicate that this field is used for all types now.
* sem_ch4.adb (Try_Object_Operation): Add parameter
Allow_Extensions set to True to pretend that extensions are
allowed.
* sem_ch4.ads: Same.
* sem_ch6.adb: Do not require Extensions_Allowed.
* sem_ch8.adb (Find_Selected_Component): Remove duplicate
"where" in comment.  Improve the error messages regarding use of
prefixed calls.
gcc/ada/einfo.ads
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch4.ads
gcc/ada/sem_ch6.adb
gcc/ada/sem_ch8.adb