This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Ada] Refine generation of elaboration warning message


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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]