aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2007-09-12 13:58:40 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-09-12 13:58:40 +0200
commit1ab9541bf8b6a08a44f6202a80f42c14a988e4bc (patch)
tree4c81f08c30582bbdcd19978c7a0c51d1b06325b6 /gcc
parent2d9ea47f100bbaf1dad421a216009fe994556344 (diff)
downloadgcc-1ab9541bf8b6a08a44f6202a80f42c14a988e4bc.zip
gcc-1ab9541bf8b6a08a44f6202a80f42c14a988e4bc.tar.gz
gcc-1ab9541bf8b6a08a44f6202a80f42c14a988e4bc.tar.bz2
sem_aggr.adb (Resolve_Record_Aggregate): An others association with a box need not correspond to any component.
2007-09-12 Ed Schonberg <schonberg@adacore.com> * sem_aggr.adb (Resolve_Record_Aggregate): An others association with a box need not correspond to any component. From-SVN: r128427
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/sem_aggr.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb
index 6c52b9f..55385e4 100644
--- a/gcc/ada/sem_aggr.adb
+++ b/gcc/ada/sem_aggr.adb
@@ -2665,6 +2665,13 @@ package body Sem_Aggr is
Error_Msg_N ("OTHERS must appear last in an aggregate",
Selector_Name);
return;
+
+ -- (Ada2005): If this is an association with a box,
+ -- indicate that the association need not represent
+ -- any component.
+
+ elsif Box_Present (Assoc) then
+ Others_Box := True;
end if;
else