aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_aggr.ads
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-07-31 22:11:30 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-09-05 09:21:07 +0200
commit59a23beb9e71a0259b076693dd1e551500c08f24 (patch)
treede6bb6a37991d0562155dc2dd7904af5ef90f35f /gcc/ada/sem_aggr.ads
parentb26be61b8d23cc9d7a4e36feeadd9c8f0ec8b909 (diff)
downloadgcc-59a23beb9e71a0259b076693dd1e551500c08f24.zip
gcc-59a23beb9e71a0259b076693dd1e551500c08f24.tar.gz
gcc-59a23beb9e71a0259b076693dd1e551500c08f24.tar.bz2
[Ada] Fix inconsistent building of itypes for null array aggregates
To analyze Ada 2022 null array aggregates we introduced a dedicated routine and bypassed the code for ordinary array aggregates. However, the types for the array indexes created by this dedicated routine differed from the types created for ordinary array aggregates, i.e. itypes for null array aggregates were associated with the array subtype declaration, while itypes for ordinary array aggregates were associated with the aggregate itself. These differences cause trouble for various routines in GNATprove. This patch reduces the special handling of null array aggregates and reuses the building of itypes for ordinary array aggregates. gcc/ada/ * sem_aggr.adb (Array_Aggr_Subtype): Bypass call to Collect_Aggr_Bound with dedicated code for null array aggregates. (Resolve_Array_Aggregate): Remove special handling of null array aggregates. (Resolve_Array_Aggregate): Create bounds, but let Array_Aggr_Subtype create itype entities.
Diffstat (limited to 'gcc/ada/sem_aggr.ads')
0 files changed, 0 insertions, 0 deletions