]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name is Error.
authorRobert Dewar <dewar@gnat.com>
Fri, 26 Oct 2001 01:46:11 +0000 (01:46 +0000)
committerGeert Bosch <bosch@gcc.gnu.org>
Fri, 26 Oct 2001 01:46:11 +0000 (03:46 +0200)
* sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
        is Error. Similar change for other renaming cases.

From-SVN: r46519

gcc/ada/ChangeLog
gcc/ada/sem_ch8.adb

index 763f74164523950c7aca123c9dbae560f5834a88..d65039b1e037136892d1102e80eb01fc2ecca188 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-25  Robert Dewar <dewar@gnat.com>
+
+       * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name 
+        is Error. Similar change for other renaming cases.
+
 2001-10-25  Robert Dewar <dewar@gnat.com>
 
        * s-atacco.ads: Add pragma Inline_Always for functions.
index ab90a102d70a1dbcb048b013e3733e99a379e7ef..3947eb8ec9def7cbd7d276cb2839e6c75b8a75f4 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                            $Revision: 1.583 $
+--                            $Revision$
 --                                                                          --
 --          Copyright (C) 1992-2001, Free Software Foundation, Inc.         --
 --                                                                          --
@@ -545,6 +545,10 @@ package body Sem_Ch8 is
       Inst  : Boolean   := False; -- prevent junk warning
 
    begin
+      if Name (N) = Error then
+         return;
+      end if;
+
       Generate_Definition (New_P);
 
       if Current_Scope /= Standard_Standard then
@@ -605,6 +609,10 @@ package body Sem_Ch8 is
       T2  : Entity_Id;
 
    begin
+      if Nam = Error then
+         return;
+      end if;
+
       Set_Is_Pure (Id, Is_Pure (Current_Scope));
       Enter_Name (Id);
 
@@ -716,6 +724,10 @@ package body Sem_Ch8 is
       Spec  : Node_Id;
 
    begin
+      if Name (N) = Error then
+         return;
+      end if;
+
       --  Apply Text_IO kludge here, since we may be renaming one of
       --  the children of Text_IO