Commit 33738c60 by Ed Schonberg Committed by Arnaud Charlet

sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply AI05-296 if the actual is overloaded.

2012-06-12  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply
	AI05-296 if the actual is overloaded. In this case The rule must
	be applied after resolution, in Analyze_Subprogram_Renaming.

From-SVN: r188450
parent e98668b1
2012-06-12 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply
AI05-296 if the actual is overloaded. In this case The rule must
be applied after resolution, in Analyze_Subprogram_Renaming.
2012-06-12 Robert Dewar <dewar@adacore.com>
* stringt.adb: Minor reformatting.
......
......@@ -9450,6 +9450,7 @@ package body Sem_Ch12 is
end if;
if Is_Entity_Name (Actual)
and then not Is_Overloaded (Actual)
and then not Has_Untagged_Inc
then
F := First_Formal (Entity (Actual));
......
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