]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix missing finalization with conditional expression in extended return
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Jun 2025 19:58:49 +0000 (21:58 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Jul 2025 09:45:32 +0000 (11:45 +0200)
commitce51aec0583912e46a4c519f5da04deabb400f8e
tree266b12baf9bd1266263ca0837cedad6a0659d303
parent36b77268eec6e9791811b36b0d48c788ff696fb9
ada: Fix missing finalization with conditional expression in extended return

Declarations of return objects are not (yet) distributed into the dependent
expressions of conditional expressions.

gcc/ada/ChangeLog:

* exp_ch6.adb (Expand_Ctrl_Function_Call): Do not bail out for the
declarations of return objects.
gcc/ada/exp_ch6.adb