aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2023-11-16 19:45:41 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-11-30 11:12:46 +0100
commit2a50a4d4bca09c1c1b255f3ce6c06be57f62889b (patch)
treea6926631809b75fd4fd794ff395f7928424cc5c8 /gcc/alloc-pool.h
parentab0efa304ffd7139105139c90de63ca0651ef274 (diff)
downloadgcc-2a50a4d4bca09c1c1b255f3ce6c06be57f62889b.zip
gcc-2a50a4d4bca09c1c1b255f3ce6c06be57f62889b.tar.gz
gcc-2a50a4d4bca09c1c1b255f3ce6c06be57f62889b.tar.bz2
ada: Fix wrong finalization for qualified aggregate of limited type in allocator
This happens with -gnata when the limited type has controlled components and a predicate, because the predicate check generated for the aggregate causes the creation of a temporary that is used as the expression of the allocator. Now this combination is illegal for a limited type, so the compiler does not generate the deep adjustment that would be necessary for the access value, which ultimately results in a wrong finalization. gcc/ada/ * checks.adb (Apply_Predicate_Check): Also deal specifically with an expression that is a qualified aggregate in an allocator.
Diffstat (limited to 'gcc/alloc-pool.h')
0 files changed, 0 insertions, 0 deletions