]> gcc.gnu.org Git - gcc.git/commit
ada: Fix late finalization for function call in delta aggregate
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 27 Aug 2023 07:34:59 +0000 (09:34 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 14 Sep 2023 12:42:38 +0000 (14:42 +0200)
commitf8f05af400c99cdbdccfc57d536ccf5e1f0bdc47
tree37ef4130007ead418c244d391258936857e084ce
parentc3e95117406ad0f1dbe038c883122a8824a8105c
ada: Fix late finalization for function call in delta aggregate

The problem occurs at library level because the temporary created for the
function call lives in the elaboration routine but is finalized only when
the package itself is.

It turns out that there is no need for this temporary, since the expansion
of delta aggregates already creates a (properly finalized) temporary.

gcc/ada/

* exp_ch6.adb (Expand_Ctrl_Function_Call): Also do nothing for the
expression of a delta aggregate.
gcc/ada/exp_ch6.adb
This page took 0.054395 seconds and 5 git commands to generate.