===================================================================
@@ -231,10 +231,10 @@
E1 : Node_Id;
E2 : Node_Id;
- P_Type : Entity_Id;
+ P_Type : Entity_Id := Empty;
-- Type of prefix after analysis
- P_Base_Type : Entity_Id;
+ P_Base_Type : Entity_Id := Empty;
-- Base type of prefix after analysis
-----------------------
@@ -419,7 +419,7 @@
-- required error messages.
procedure Error_Attr_P (Msg : String);
- pragma No_Return (Error_Attr);
+ pragma No_Return (Error_Attr_P);
-- Like Error_Attr, but error is posted at the start of the prefix
procedure Legal_Formal_Attribute;
@@ -446,7 +446,9 @@
-- node in the aspect case).
procedure Unexpected_Argument (En : Node_Id);
- -- Signal unexpected attribute argument (En is the argument)
+ pragma No_Return (Unexpected_Argument);
+ -- Signal unexpected attribute argument (En is the argument), and then
+ -- raises Bad_Attribute to avoid any further semantic processing.
procedure Validate_Non_Static_Attribute_Function_Call;
-- Called when processing an attribute that is a function call to a
@@ -1108,8 +1110,10 @@
-- node Nod is within enclosing node Encl_Nod.
procedure Placement_Error;
+ pragma No_Return (Placement_Error);
-- Emit a general error when the attributes does not appear in a
- -- postcondition-like aspect or pragma.
+ -- postcondition-like aspect or pragma, and then raises Bad_Attribute
+ -- to avoid any further semantic processing.
------------------------------
-- Check_Placement_In_Check --