Commit 578053f2 by Ed Schonberg Committed by Geert Bosch

sem_elab.adb (Check_A_Call): refine message when call is in an instance but…

sem_elab.adb (Check_A_Call): refine message when call is in an instance but callee is not declared in the...

	* sem_elab.adb (Check_A_Call): refine message when call is in an
	instance but callee is not declared in the generic unit.

From-SVN: r46513
parent 0597ce0b
2001-10-25 Ed Schonberg <schonber@gnat.com> 2001-10-25 Ed Schonberg <schonber@gnat.com>
* sem_elab.adb (Check_A_Call): refine message when call is in an
instance but callee is not declared in the generic unit.
2001-10-25 Ed Schonberg <schonber@gnat.com>
* sem_elab.adb (Check_A_Call): check for renaming before finding the * sem_elab.adb (Check_A_Call): check for renaming before finding the
enclosing unit, which may already be different from the calling unit. enclosing unit, which may already be different from the calling unit.
......
...@@ -521,6 +521,7 @@ package body Sem_Elab is ...@@ -521,6 +521,7 @@ package body Sem_Elab is
if Unit_Caller /= No_Unit if Unit_Caller /= No_Unit
and then Unit_Callee /= Unit_Caller and then Unit_Callee /= Unit_Caller
and then Unit_Callee /= No_Unit
and then not Dynamic_Elaboration_Checks and then not Dynamic_Elaboration_Checks
then then
E_Scope := Spec_Entity (Cunit_Entity (Unit_Caller)); E_Scope := Spec_Entity (Cunit_Entity (Unit_Caller));
......
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