aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch10.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_ch10.adb')
-rw-r--r--gcc/ada/sem_ch10.adb6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb
index 45aabad..f58513d 100644
--- a/gcc/ada/sem_ch10.adb
+++ b/gcc/ada/sem_ch10.adb
@@ -1491,6 +1491,10 @@ package body Sem_Ch10 is
-- No checks required if no separate spec
or else Acts_As_Spec (N)
+
+ -- No checked needed for ignored ghost units
+
+ or else Is_Ignored_Ghost_Entity (Spec_Id)
)
then
-- This is a case where we only need the entity for checking to
@@ -3295,7 +3299,7 @@ package body Sem_Ch10 is
-- the renamed unit, and the renaming declaration itself has not
-- been analyzed.
- Analyze (Parent (Parent (Entity (Pref))));
+ Semantics (Parent (Parent (Entity (Pref))));
pragma Assert (Renamed_Entity (Entity (Pref)) = Par_Name);
Par_Name := Entity (Pref);
end if;