Commit b6dc26ba by Arnaud Charlet

Minor reformatting.

From-SVN: r247388
parent 85be939e
...@@ -3111,10 +3111,11 @@ package body Sem_Ch6 is ...@@ -3111,10 +3111,11 @@ package body Sem_Ch6 is
end; end;
end if; end if;
-- Freezing an access type does not freeze the designated -- Freezing an access type does not freeze the designated type,
-- type, but freezing conversions between access to interfaces -- but freezing conversions between access to interfaces requires
-- requires that the interface types themselves be frozen, so -- that the interface types themselves be frozen, so that dispatch
-- that dispatch table entities are properly created. -- table entities are properly created.
-- Unclear whether a more general rule is needed ??? -- Unclear whether a more general rule is needed ???
elsif Nkind (Node) = N_Type_Conversion elsif Nkind (Node) = N_Type_Conversion
......
...@@ -11945,6 +11945,7 @@ package body Sem_Res is ...@@ -11945,6 +11945,7 @@ package body Sem_Res is
function In_Instance_Code return Boolean is function In_Instance_Code return Boolean is
Par : Node_Id; Par : Node_Id;
begin begin
if not In_Instance then if not In_Instance then
return False; return False;
...@@ -11953,24 +11954,25 @@ package body Sem_Res is ...@@ -11953,24 +11954,25 @@ package body Sem_Res is
Par := Parent (N); Par := Parent (N);
while Present (Par) loop while Present (Par) loop
-- The expression is part of an actual object if it appears -- The expression is part of an actual object if it appears in
-- in the generated object declaration in the instance. -- the generated object declaration in the instance.
if Nkind (Par) = N_Object_Declaration if Nkind (Par) = N_Object_Declaration
and then Present (Corresponding_Generic_Association (Par)) and then Present (Corresponding_Generic_Association (Par))
then then
return False; return False;
else else
exit when Nkind (Par) exit when
in N_Statement_Other_Than_Procedure_Call Nkind (Par) in N_Statement_Other_Than_Procedure_Call
or else Nkind (Par) in N_Subprogram_Call or else Nkind (Par) in N_Subprogram_Call
or else Nkind (Par) in N_Declaration; or else Nkind (Par) in N_Declaration;
end if; end if;
Par := Parent (Par); Par := Parent (Par);
end loop; end loop;
-- Otherwise the expression appears within the instantiated unit. -- Otherwise the expression appears within the instantiated unit
return True; return True;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment