This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Refine generation of elaboration warning message
- To: gcc-patches at gcc dot gnu dot org
- Subject: [Ada] Refine generation of elaboration warning message
- From: bosch at gnat dot com
- Date: Thu, 25 Oct 2001 21:20:33 -0400 (EDT)
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.
*** sem_elab.adb 2001/08/28 11:27:32 1.84
--- sem_elab.adb 2001/09/30 21:35:26 1.85
***************
*** 521,526 ****
--- 521,527 ----
if Unit_Caller /= No_Unit
and then Unit_Callee /= Unit_Caller
+ and then Unit_Callee /= No_Unit
and then not Dynamic_Elaboration_Checks
then
E_Scope := Spec_Entity (Cunit_Entity (Unit_Caller));