summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-18 13:58:25 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-18 13:58:25 +0000
commitd2be415f274c534ec425e8153b09208c558936f0 (patch)
tree49324add06c331189976e682c92938d0ed04c8ad /gcc/ada/sem_ch3.ads
parentaaaf92e8e1b61f0fce07900cffb5e274c8c4ccef (diff)
downloadgcc-d2be415f274c534ec425e8153b09208c558936f0.tar.gz
2010-10-18 Ed Schonberg <schonberg@adacore.com>
* sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the library level, the pre/postconditions must be treated as global declarations, i.e. placed on the Aux_Decl nodes of the compilation unit. * freeze.adb (Freeze_Expression): If the expression is at library level there is no enclosing record to check. 2010-10-18 Javier Miranda <miranda@adacore.com> * sem_ch3.ads (Find_Type_Name): Add documentation. * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the propagation of the class-wide entity is now done by routine Find_Type_Name to factorize this code. (Analyze_Private_Extension_Declaration): Handle private type that completes an incomplete type. (Tag_Mismatch): Add error message for tag mismatch in a private type declaration that completes an incomplete type. (Find_Type_Name): Handle completion of incomplete type by means of a private declaration. Generate an error if a tagged incomplete type is completed by an untagged private type. * sem_ch7.adb (New_Private_Type): Handle private type that completes an incomplete type. * einfo.ads (Full_View): Add documentation. 2010-10-18 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is a renaming, generate a reference for it before analyzing the renamed entity, to prevent spurious warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165636 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_ch3.ads')
-rw-r--r--gcc/ada/sem_ch3.ads5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch3.ads b/gcc/ada/sem_ch3.ads
index 2bff2e2bbd9..57da53272fa 100644
--- a/gcc/ada/sem_ch3.ads
+++ b/gcc/ada/sem_ch3.ads
@@ -157,7 +157,10 @@ package Sem_Ch3 is
function Find_Type_Name (N : Node_Id) return Entity_Id;
-- Enter the identifier in a type definition, or find the entity already
-- declared, in the case of the full declaration of an incomplete or
- -- private type.
+ -- private type. If the previous declaration is tagged then the class-wide
+ -- entity is propagated to the identifier to prevent multiple incompatible
+ -- class-wide types that may be created for self-referential anonymous
+ -- access components.
function Get_Discriminant_Value
(Discriminant : Entity_Id;