Message ID | 20151118135551.GA52049@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_ch4.adb =================================================================== --- sem_ch4.adb (revision 230524) +++ sem_ch4.adb (working copy) @@ -7437,7 +7437,14 @@ Arg := First (Exprs); while Present (Arg) loop New_Arg := Relocate_Node (Arg); - Save_Interps (Arg, New_Arg); + + -- The arguments can be parameter associations, in which case the + -- explicit actual parameter carries the overloadings. + + if Nkind (New_Arg) /= N_Parameter_Association then + Save_Interps (Arg, New_Arg); + end if; + Append (New_Arg, Assoc); Next (Arg); end loop;