diff options
author | Steve Baird <baird@adacore.com> | 2022-08-15 16:58:36 -0700 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-06 09:14:22 +0200 |
commit | c889b2e8acc706b2c9fe6559c0094ce7785c3583 (patch) | |
tree | e2d75076bd066e5e6ca6244b16f62207ce5e4257 /gcc/ada/gcc-interface/utils.cc | |
parent | 2aef4695708f807f44ff531f0c489907f92e05ad (diff) | |
download | gcc-c889b2e8acc706b2c9fe6559c0094ce7785c3583.zip gcc-c889b2e8acc706b2c9fe6559c0094ce7785c3583.tar.gz gcc-c889b2e8acc706b2c9fe6559c0094ce7785c3583.tar.bz2 |
[Ada] Slice length computation bug in Generic_Bounded_Length generics
In some cases involving null slices, the Slice subprograms (both the
function and the procedure) in each of the three Generic_Bounded_Length
generic packages (for String, Wide_String, and Wide_Wide_String)
could raise Constraint_Error in cases where this is incorrect.
gcc/ada/
* libgnat/a-strsup.adb, libgnat/a-stwisu.adb, libgnat/a-stzsup.adb
(Super_Slice function and procedure): fix slice length computation.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions