diff options
author | Javier Miranda <miranda@adacore.com> | 2005-03-18 12:48:05 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2005-03-18 12:48:05 +0100 |
commit | 7b1da1d017af4e414586eb027f06eb9b8c41fcdd (patch) | |
tree | d2cdf3aa14acc3f051135a94e65cead5681dcdf6 /gcc/ada/sem_ch12.adb | |
parent | 5e77b60afdb1ef7b0a6b3a711bd71560dc7c00d4 (diff) | |
download | gcc-7b1da1d017af4e414586eb027f06eb9b8c41fcdd.zip gcc-7b1da1d017af4e414586eb027f06eb9b8c41fcdd.tar.gz gcc-7b1da1d017af4e414586eb027f06eb9b8c41fcdd.tar.bz2 |
einfo.adb (First_Private_Entity, [...]): Addition of one barrier to avoid wrong usage of this attribute.
2005-03-17 Javier Miranda <miranda@adacore.com>
* einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
of one barrier to avoid wrong usage of this attribute.
* sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
First_Private_Entity.
* sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
the subprogram against wrong usage.
Adapt the code to traverse the entities in the
scope of a record_type because in addition to its usage regarding
packages, this subprogram is also called by Expand_N_Freeze_Entity
to install the visible declarations of the enclosing scope of a
record_type_with_private to establish the proper visibility before
freezing the entity and related subprograms.
From-SVN: r96664
Diffstat (limited to 'gcc/ada/sem_ch12.adb')
-rw-r--r-- | gcc/ada/sem_ch12.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index 53bb257..661ac76 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -6518,7 +6518,7 @@ package body Sem_Ch12 is while Present (Actual_Ent) and then Present (Formal_Node) - and then Actual_Ent /= First_Private_Entity (Act_Ent) + and then Actual_Ent /= First_Private_Entity (Act_Pkg) loop -- ??? Are the following calls also needed here: -- |