]> gcc.gnu.org Git - gcc.git/commit
[Ada] Fix a bug in the contract of formal ordered sets
authorJulien Bortolussi <bortolussi@adacore.com>
Thu, 4 Aug 2022 16:15:13 +0000 (18:15 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:21 +0000 (09:14 +0200)
commiteae9f5d25713013a6fa3e6c60f7f744ab3bf778b
treeb075e3b68d6e89a1260a918977e6ec2f99981d0a
parentc56c7d3aeb050ddfe7a41cc00ce5eaa5c4edd636
[Ada] Fix a bug in the contract of formal ordered sets

There are 2 main issues in the postcondition of the function Replace
of the formal ordered sets, in the sub package Generic_Keys. One is
related to the fact that when the element is changed, the key is
also changed. The second one is due to the fact that the arrival of
the new element might modify the ordering of the set and thus
the Positions might be modified.
As a consequence, the postcondition might be false and thus fail
at runtime.

gcc/ada/

* libgnat/a-cforse.ads (Replace): Fix the postcondition.
gcc/ada/libgnat/a-cforse.ads
This page took 0.054237 seconds and 5 git commands to generate.