]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix wrong finalization of constrained array derived from unconstrained
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 5 May 2025 14:59:13 +0000 (16:59 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 1 Jul 2025 14:33:58 +0000 (16:33 +0200)
commit484fb60fdcb33703e32f1770cf2b406a4428a680
treee9fc158d755ecd011c4143ef05d8d93d927be333
parent54b5f782727413885b89e8292ae60156ff50446c
ada: Fix wrong finalization of constrained array derived from unconstrained

The bug had been present for dynamically allocated objects since the first
rewrite of the finalization machinery more than a decade ago, and was then
propagated to statically declared objects by the recent rewrite.

gcc/ada/ChangeLog:

* exp_util.adb (Finalize_Address): Do not go to the root type for
array types.
gcc/ada/exp_util.adb