diff options
author | Viljar Indus <indus@adacore.com> | 2024-03-13 11:24:59 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-17 10:21:07 +0200 |
commit | 9bd0b709ddb70589436c326142b1566f49f5e979 (patch) | |
tree | 9ea74ac4c11be1e17b404fa432843cfa311c0769 /libcpp | |
parent | 167462f1977e7ed52a0d0aec8508b45bfe78c54b (diff) | |
download | gcc-9bd0b709ddb70589436c326142b1566f49f5e979.zip gcc-9bd0b709ddb70589436c326142b1566f49f5e979.tar.gz gcc-9bd0b709ddb70589436c326142b1566f49f5e979.tar.bz2 |
ada: Improve deriving initial sizes for container aggregates
Deriving the initial size of container aggregates is necessary
for deriving the correct capacity for bounded containers.
Add support for deriving the correct initial size
when the container aggregate is iterating over an array
object.
gcc/ada/
* exp_aggr.adb (Expand_Container_Aggregate):
Derive the size for iterable aggregates in the case of
one-dimensional array objects.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions