Commit d3e65aad by Thomas Quinot Committed by Arnaud Charlet

sem_ch4.adb (Transform_Object_Operation): For an actual that is an overloaded function call...

2005-07-04  Thomas Quinot  <quinot@adacore.com>

	* sem_ch4.adb (Transform_Object_Operation): For an actual that is an
	overloaded function call, carry interpretations from the original tree
	to the copy.

From-SVN: r101587
parent d5f09c91
...@@ -4913,7 +4913,19 @@ package body Sem_Ch4 is ...@@ -4913,7 +4913,19 @@ package body Sem_Ch4 is
begin begin
Actual := First (Parameter_Associations (Parent_Node)); Actual := First (Parameter_Associations (Parent_Node));
while Present (Actual) loop while Present (Actual) loop
Append (New_Copy_Tree (Actual), Actuals); declare
New_Actual : constant Node_Id := New_Copy_Tree (Actual);
begin
Append (New_Actual, Actuals);
if Nkind (Actual) = N_Function_Call
and then Is_Overloaded (Name (Actual))
then
Save_Interps (Name (Actual), Name (New_Actual));
end if;
end;
Next (Actual); Next (Actual);
end loop; end loop;
end; end;
......
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