Commit ed4a1468 by Robert Dewar Committed by Geert Bosch

sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name is Error.

	* sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
        is Error. Similar change for other renaming cases.

From-SVN: r46519
parent 24377ae4
2001-10-25 Robert Dewar <dewar@gnat.com> 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. * s-atacco.ads: Add pragma Inline_Always for functions.
Fix header format. Add copyright 2001 Fix header format. Add copyright 2001
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- $Revision: 1.583 $ -- $Revision$
-- -- -- --
-- Copyright (C) 1992-2001, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2001, Free Software Foundation, Inc. --
-- -- -- --
...@@ -545,6 +545,10 @@ package body Sem_Ch8 is ...@@ -545,6 +545,10 @@ package body Sem_Ch8 is
Inst : Boolean := False; -- prevent junk warning Inst : Boolean := False; -- prevent junk warning
begin begin
if Name (N) = Error then
return;
end if;
Generate_Definition (New_P); Generate_Definition (New_P);
if Current_Scope /= Standard_Standard then if Current_Scope /= Standard_Standard then
...@@ -605,6 +609,10 @@ package body Sem_Ch8 is ...@@ -605,6 +609,10 @@ package body Sem_Ch8 is
T2 : Entity_Id; T2 : Entity_Id;
begin begin
if Nam = Error then
return;
end if;
Set_Is_Pure (Id, Is_Pure (Current_Scope)); Set_Is_Pure (Id, Is_Pure (Current_Scope));
Enter_Name (Id); Enter_Name (Id);
...@@ -716,6 +724,10 @@ package body Sem_Ch8 is ...@@ -716,6 +724,10 @@ package body Sem_Ch8 is
Spec : Node_Id; Spec : Node_Id;
begin begin
if Name (N) = Error then
return;
end if;
-- Apply Text_IO kludge here, since we may be renaming one of -- Apply Text_IO kludge here, since we may be renaming one of
-- the children of Text_IO -- the children of Text_IO
......
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