summaryrefslogtreecommitdiff
path: root/gcc/ada/par_sco.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-05 09:43:13 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-05 09:43:13 +0000
commite6de9b423dc97093e3930a238bbe24929ceddae7 (patch)
tree31d7de32ea26160d58079a05b74e3e1522cf8169 /gcc/ada/par_sco.adb
parent4d6b2b7e965e19733666fe65dde197e052fb7535 (diff)
downloadgcc-e6de9b423dc97093e3930a238bbe24929ceddae7.tar.gz
2013-07-05 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Check_Formal_Package_Instance): Handle properly a formal subprogram that was defaulted in the formal package. 2013-07-05 Thomas Quinot <quinot@adacore.com> * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore N_Implicit_Label_Declaration nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par_sco.adb')
-rw-r--r--gcc/ada/par_sco.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/par_sco.adb b/gcc/ada/par_sco.adb
index 29c2daa89e1..2b8824cdf0b 100644
--- a/gcc/ada/par_sco.adb
+++ b/gcc/ada/par_sco.adb
@@ -2095,7 +2095,13 @@ package body Par_SCO is
if Is_Non_Empty_List (L) then
N := First (L);
while Present (N) loop
- Traverse_One (N);
+
+ -- Note: For separate bodies, we see the tree after Par.Labl has
+ -- introduced implicit labels, so we need to ignore those nodes.
+
+ if Nkind (N) /= N_Implicit_Label_Declaration then
+ Traverse_One (N);
+ end if;
Next (N);
end loop;