[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 6 Jan 2015 09:02:05 +0000 (10:02 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 6 Jan 2015 09:02:05 +0000 (10:02 +0100)
commit4528ead53ae6e76cd663aa9aa3e710ca833a2fa3
tree86a00e154cab2ccb628beeff36147e71d4af90b9
parent17d01d213579c0ee53913f82f4f9e40109f069ca
[multiple changes]

2015-01-06  Bob Duff  <duff@adacore.com>

* a-cfinve.adb (Copy): Set the discriminant to the Length when
Capacity = 0.
* a-cofove.ads (Capacity): Add a postcondition.
* a-cfinve.ads (Capacity): Add a postcondition.
(Reserve_Capacity): Correct the postcondition in the case where
Capacity = 0; that means "Capacity => Length (Container)".
* a-cofove.adb (Elems[c]): Add a comment
explaining the dangers and how to avoid them.

2015-01-06  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb: Code clean up.

From-SVN: r219225
gcc/ada/ChangeLog
gcc/ada/a-cfinve.adb
gcc/ada/a-cfinve.ads
gcc/ada/a-cofove.adb
gcc/ada/a-cofove.ads
gcc/ada/sem_ch12.adb