aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/gnu/java
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2026-02-11 11:38:24 +0100
committerEric Botcazou <ebotcazou@adacore.com>2026-02-11 12:07:47 +0100
commitf474ff7fc758482bb5222d989a7ff6ffd079b4a6 (patch)
tree09804c1ccc732e32cd0cf8b084ded1473ae80f21 /libjava/classpath/lib/gnu/java
parent7a4b0cec47e4a3c0466c9f8ea89e66c9b8f39e85 (diff)
downloadgcc-f474ff7fc758482bb5222d989a7ff6ffd079b4a6.zip
gcc-f474ff7fc758482bb5222d989a7ff6ffd079b4a6.tar.gz
gcc-f474ff7fc758482bb5222d989a7ff6ffd079b4a6.tar.bz2
Ada: Fix internal error on access attribute used as subpool in allocator
This is a regression present for quite a long time: the compiler aborts on an allocator whose subpool name is an access attribute and when an allocation procedure must be generated, for example when the allocation is controlled. The fix is to do what is done elsewhere in Build_Allocate_Deallocate_Proc, that is to say pass the allocation procedure as the new scope in the call to the New_Copy_Tree function. gcc/ada/ PR ada/124054 * exp_util.adb (Build_Allocate_Deallocate_Proc): Tidy up and pass Proc_Id as the new scope in the call to the New_Copy_Tree function. gcc/testsuite/ * gnat.dg/allocator4.adb: New test. Co-authored-by: Liam Powell <liam@liampwll.com>
Diffstat (limited to 'libjava/classpath/lib/gnu/java')
0 files changed, 0 insertions, 0 deletions