diff options
author | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-11 21:49:34 +0000 |
---|---|---|
committer | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-11 21:49:34 +0000 |
commit | 57f302e522c72c1aa7848b435f7c890aadb437d7 (patch) | |
tree | 8cc7939c95106e6f70eed7984957142b676ad999 /gcc/ada/sem_ch8.adb | |
parent | 8b718dab6c276a48344a37ecbaa5741466f15311 (diff) | |
download | gcc-57f302e522c72c1aa7848b435f7c890aadb437d7.tar.gz |
* gnatcmd.adb:
Changed /COMPILE_ONLY to /ACTIONS=COMPILE
Changed /BIND_ONLY to /ACTIONS=BIND
Changed /LINK_ONLY to /ACTIONS=LINK
* sem_ch8.adb (Find_Selected_Component): improved search for a
candidate package in case of error.
* sem_ch12.adb (Inline_Instance_Body): place head of use_clause
chain back on scope stack before reinstalling use clauses.
* exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
is enabled, do not kill the code for the condition, to preserve
warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_ch8.adb')
-rw-r--r-- | gcc/ada/sem_ch8.adb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch8.adb b/gcc/ada/sem_ch8.adb index 3947eb8ec9d..7e24ef65b9a 100644 --- a/gcc/ada/sem_ch8.adb +++ b/gcc/ada/sem_ch8.adb @@ -3687,9 +3687,12 @@ package body Sem_Ch8 is then -- Prefix may mention a package that is hidden by a local - -- declaration: let the user know. + -- declaration: let the user know. Scan the full homonym + -- chain, the candidate package may be anywhere on it. - if Present (Homonym (P_Name)) then + if Present (Homonym (Current_Entity (P_Name))) then + + P_Name := Current_Entity (P_Name); while Present (P_Name) loop exit when Ekind (P_Name) = E_Package; |