-- Main traversal procedure to check safe pointer usage
procedure Check_Old_Loop_Entry (N : Node_Id);
- -- Check SPARK RM 3.10(14) regarding 'Old and 'Loop_Entry
+ -- Check SPARK RM 3.10(13) regarding 'Old and 'Loop_Entry
procedure Check_Package_Body (Pack : Node_Id);
Borrowed : constant Node_Id := Get_Observed_Or_Borrowed_Expr (Expr);
begin
- -- SPARK RM 3.10(8): If the type of the target is an anonymous
+ -- SPARK RM 3.10(7): If the type of the target is an anonymous
-- access-to-variable type (an owning access type), the source shall
-- be an owning access object [..] whose root object is the target
-- object itself.
if Emit_Messages then
Error_Msg_NE
("source of assignment must have & as root" &
- " (SPARK RM 3.10(8)))",
+ " (SPARK RM 3.10(7)))",
Expr, Var);
end if;
return;
if Emit_Messages then
Error_Msg_NE
("source of assignment must have & as root" &
- " (SPARK RM 3.10(8)))",
+ " (SPARK RM 3.10(7)))",
Expr, Var);
end if;
return;
Error_Msg_Name_1 := Aname;
Error_Msg_N
("prefix of % attribute must be a function call "
- & "(SPARK RM 3.10(14))", Pref);
+ & "(SPARK RM 3.10(13))", Pref);
end if;
elsif Is_Traversal_Function_Call (Pref) then
Error_Msg_Name_1 := Aname;
Error_Msg_N
("prefix of % attribute should not call a traversal "
- & "function (SPARK RM 3.10(14))", Pref);
+ & "function (SPARK RM 3.10(13))", Pref);
end if;
end if;
end if;