This patch fixes a reference to an Ada RM clause, fixes an occurrence of
"unconstrained" that should have been "indefinite", and removes an
incorrect claim that completing a partial view without discriminants
with a full view with defaulted discriminants is an error situation.
gcc/ada/ChangeLog:
* sem_ch3.adb (Process_Discriminants, Process_Full_View): Fix
comments.
Set_Stored_Constraint (Current_Scope, No_Elist);
-- Default expressions must be provided either for all or for none
- -- of the discriminants of a discriminant part. (RM 3.7.1)
+ -- of the discriminants of a discriminant part (RM 3.7 (9.1/3)).
if Default_Present and then Default_Not_Present then
Error_Msg_N
else
-- For untagged types, verify that a type without discriminants is
- -- not completed with an unconstrained type. A separate error message
- -- is produced if the full type has defaulted discriminants.
+ -- not completed with an indefinite type.
if Is_Definite_Subtype (Priv_T)
and then not Is_Definite_Subtype (Full_T)