diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-12 11:58:40 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-12 11:58:40 +0000 |
commit | 85c52c124490a7f8f22e083591fb1cee0f590134 (patch) | |
tree | 4c81f08c30582bbdcd19978c7a0c51d1b06325b6 /gcc/ada/sem_aggr.adb | |
parent | 2a2c0bdac62b278a51855eaba00e794fddcc7315 (diff) | |
download | gcc-85c52c124490a7f8f22e083591fb1cee0f590134.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128427 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_aggr.adb')
-rw-r--r-- | gcc/ada/sem_aggr.adb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index 6c52b9f763b..55385e4c16d 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 |