Ada RM 6.5(5.3/5) is about "result SUBTYPE of the function", while the error
message was saying "result TYPE of the function". Now use the exact RM wording
in the error message for this rule.
gcc/ada/ChangeLog:
* sem_ch3.adb (Check_Return_Subtype_Indication): Adjust error message
to match the RM wording.
then
Error_Msg_N
("result subtype must be statically compatible with the " &
- "function result type", Indic);
+ "function result subtype", Indic);
if not Predicates_Compatible (Obj_Typ, R_Typ) then
Error_Msg_NE