diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-10-18 11:32:02 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-08 09:35:03 +0100 |
commit | b2278f6b146595b3f80a072145a78877041cb8bc (patch) | |
tree | 78f57407fc72c37b5db3acf12a88855551bab6ab /gcc/c/c-parser.c | |
parent | 10f193eb043e30741d9631999bc869d71d43264c (diff) | |
download | gcc-b2278f6b146595b3f80a072145a78877041cb8bc.zip gcc-b2278f6b146595b3f80a072145a78877041cb8bc.tar.gz gcc-b2278f6b146595b3f80a072145a78877041cb8bc.tar.bz2 |
ada: Fix oversight in implementation of allocators for storage models
When the allocator is of an unconstrained array type and has an initializing
expression, the copy of the initializing expression must be done separately
from that of the bounds.
gcc/ada/
* gcc-interface/utils2.cc (build_allocator): For unconstrained
array types with a storage model and an initializing expression,
copy the initialization expression separately from the bounds. In
all cases with a storage model, pass the locally computed size for
the store.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions