summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 13:41:29 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 13:41:29 +0000
commit829967f1aa91bbb942b6aff327e04627e7099070 (patch)
treef9e873bd79131ffc12f463a8de5aa67ea40b6b21 /gcc/ada/sem_ch3.adb
parent8421bfe4f9b66fe68d0c885307023ee6ce389759 (diff)
downloadgcc-829967f1aa91bbb942b6aff327e04627e7099070.tar.gz
2015-10-16 Javier Miranda <miranda@adacore.com>
* sem_ch5.adb (Analyze_Iterator_Specification): Associate a transient scope with the renaming object declararation. * exp_util.adb (Insert_Actions): if the enclosing interator loop is marked as requiring the secondary stack then attach the actions to the transient scope. 2015-10-16 Bob Duff <duff@adacore.com> * exp_ch7.adb: Minor spelling fixes. 2015-10-16 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): If anonymous type is component type of array type declaration, analyze its declaration in the current scope, not the enclosing one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
-rw-r--r--gcc/ada/sem_ch3.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index f21edeb057e..542ea3f9c1d 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -5913,7 +5913,13 @@ package body Sem_Ch3 is
Mark_Rewrite_Insertion (Comp);
- if Nkind_In (N, N_Object_Declaration, N_Access_Function_Definition) then
+ if Nkind_In (N, N_Object_Declaration, N_Access_Function_Definition)
+ or else (Nkind (Parent (N)) = N_Full_Type_Declaration
+ and then not Is_Type (Current_Scope))
+ then
+
+ -- Declaration can be analyzed in the current scope.
+
Analyze (Decl);
else