diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-07 16:25:32 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-07 16:25:32 +0000 |
commit | 07f700689b97a0de4cb3a699a3ce8792ea6027d5 (patch) | |
tree | b7d2c8c0616c6ae4c1b17857b182dea8d1352672 /gcc/ada/a-cohama.ads | |
parent | 5216baa80511d06d2c52cf413c0c1522e7e899b8 (diff) | |
download | gcc-07f700689b97a0de4cb3a699a3ce8792ea6027d5.tar.gz |
2011-11-07 Yannick Moy <moy@adacore.com>
* sem_util.adb (Note_Possible_Modification): In Alfa mode,
generate a reference for a modification even when the modification
does not come from source.
2011-11-07 Ed Schonberg <schonberg@adacore.com>
* exp_ch5.adb (Expand_Iterator_Loop): For the "of" iterator form,
use the indexing attributes rather than the Element function,
to obtain variable references.
* sem_ch4.adb (Try_Container_Indexing): Code cleanup. Use
Find_Aspect rather than iterating over representation
items. Improve error message.
* a-cohama.adb, a-cohama.ads Update to latest RM, with two versions
of Reference functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181093 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cohama.ads')
-rw-r--r-- | gcc/ada/a-cohama.ads | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ada/a-cohama.ads b/gcc/ada/a-cohama.ads index 62773833246..a13d14c2cca 100644 --- a/gcc/ada/a-cohama.ads +++ b/gcc/ada/a-cohama.ads @@ -311,10 +311,19 @@ package Ada.Containers.Hashed_Maps is for Reference_Type'Read use Read; function Constant_Reference - (Container : Map; Key : Key_Type) -- SHOULD BE ALIASED + (Container : aliased Map; Position : Cursor) return Constant_Reference_Type; - function Reference (Container : Map; Key : Key_Type) + function Reference + (Container : aliased in out Map; Position : Cursor) + return Reference_Type; + + function Constant_Reference + (Container : aliased Map; Key : Key_Type) + return Constant_Reference_Type; + + function Reference + (Container : aliased in out Map; Key : Key_Type) return Reference_Type; procedure Iterate |