diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-27 16:58:19 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-27 16:58:19 +0000 |
commit | bbbf97b6a4548212019a6539c9be184f93a1059e (patch) | |
tree | 9bb29935d01cc9a45a7f899c2d0c5e9743ccbe22 /gcc/ada/a-cfhama.ads | |
parent | dc45fd720edb2d83a3e3b11f1a6dde8d08ea55a6 (diff) | |
download | ppe42-gcc-bbbf97b6a4548212019a6539c9be184f93a1059e.tar.gz ppe42-gcc-bbbf97b6a4548212019a6539c9be184f93a1059e.zip |
2014-01-27 Robert Dewar <dewar@adacore.com>
* sem_res.adb (Resolve_Comparison_Op): Add type name/location
to unordered msg.
(Resolve_Range): Add type name/location to unordered msg.
2014-01-27 Claire Dross <dross@adacore.com>
* a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
Capacity) is only called with Capacity >= Length (Source) and
Capacity in Capacity_Range.
* a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
is only called with Capacity >= Source.Capacity. Raise Capacity_Error
in the code is this is not the case.
2014-01-27 Thomas Quinot <quinot@adacore.com>
* sem_ch4.adb (Analyze_Selected_Component): Fix handling of
selected component in an instance where the component of the
actual is not visibile at instantiation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cfhama.ads')
-rw-r--r-- | gcc/ada/a-cfhama.ads | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/a-cfhama.ads b/gcc/ada/a-cfhama.ads index 5366655753e..71eed2b0e4d 100644 --- a/gcc/ada/a-cfhama.ads +++ b/gcc/ada/a-cfhama.ads @@ -100,7 +100,7 @@ package Ada.Containers.Formal_Hashed_Maps is (Source : Map; Capacity : Count_Type := 0) return Map with - Pre => Capacity >= Source.Capacity; + Pre => Capacity = 0 or else Capacity >= Source.Capacity; -- Copy returns a container stricty equal to Source. It must have -- the same cursors associated with each element. Therefore: -- - capacity=0 means use container.capacity as capacity of target |