aboutsummaryrefslogtreecommitdiff
path: root/intl/libgnuintl.h
diff options
context:
space:
mode:
authorJulien Bortolussi <bortolussi@adacore.com>2022-08-04 18:15:13 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-09-06 09:14:21 +0200
commiteae9f5d25713013a6fa3e6c60f7f744ab3bf778b (patch)
treeb075e3b68d6e89a1260a918977e6ec2f99981d0a /intl/libgnuintl.h
parentc56c7d3aeb050ddfe7a41cc00ce5eaa5c4edd636 (diff)
downloadgcc-eae9f5d25713013a6fa3e6c60f7f744ab3bf778b.zip
gcc-eae9f5d25713013a6fa3e6c60f7f744ab3bf778b.tar.gz
gcc-eae9f5d25713013a6fa3e6c60f7f744ab3bf778b.tar.bz2
[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.
Diffstat (limited to 'intl/libgnuintl.h')
0 files changed, 0 insertions, 0 deletions