[Ada] Incorrect iteration over hashed containers after multiple Inserts
authorEd Schonberg <schonberg@adacore.com>
Fri, 21 May 2021 19:51:13 +0000 (15:51 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 8 Jul 2021 13:34:17 +0000 (13:34 +0000)
commitb927d936e339ddd47779b522b80552306ebb5604
treeb9cceeeb9ef6537885709f2e0e4c54e742dc0894
parentc5b1e8e9a5808d612ad20fdf2f77c52cfa5907d3
[Ada] Incorrect iteration over hashed containers after multiple Inserts

gcc/ada/

* libgnat/a-cohama.ads: Introduce an equality operator over
cursors.
* libgnat/a-cohase.ads: Ditto.
* libgnat/a-cohama.adb: Add body for "=" over cursors.
(Insert): Do not set the Position component of the cursor that
denotes the inserted element.
* libgnat/a-cohase.adb: Ditto.
gcc/ada/libgnat/a-cohama.adb
gcc/ada/libgnat/a-cohama.ads
gcc/ada/libgnat/a-cohase.adb
gcc/ada/libgnat/a-cohase.ads