sem_elab.adb (Check_A_Call): refine message when call is in an instance but callee...
authorEd Schonberg <schonber@gnat.com>
Fri, 26 Oct 2001 01:12:44 +0000 (01:12 +0000)
committerGeert Bosch <bosch@gcc.gnu.org>
Fri, 26 Oct 2001 01:12:44 +0000 (03:12 +0200)
* 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

gcc/ada/ChangeLog
gcc/ada/sem_elab.adb

index a3bdfef7997920607d8c1f19c9e86ad253f74279..410f1178dfe01c2433e55ad5c065caf3985c86ff 100644 (file)
@@ -1,3 +1,8 @@
+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 
index 943161addace8bae603fcc5b6e656f8d82d8c8e8..53dc7f82a891cc0816902990e37bca57a5f3acff 100644 (file)
@@ -521,6 +521,7 @@ package body Sem_Elab is
 
          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));