[Ada] Improve error message on illegal prefixed procedure call
Pierre-Marie de Rodat
derodat@adacore.com
Thu Nov 26 08:41:00 GMT 2020
This patch improves an error message on an illegal prefixed procedure
call Obj.Name (Args) when Name denotes a visible component of Obj, as
well as a primitive operation of the type of Obj.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_ch6.adb (Analyze_Call_And_Resolve): Add information to the
error message on an illegal procedure call, when the illegality
is due to the presence of a component of the full view of the
target object, as well as a procedure with the same name (See RM
4.1.3 (9.2/3)).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201126/6a4c66dc/attachment-0001.bin>
More information about the Gcc-patches
mailing list