https://gcc.gnu.org/g:4290b2dbef55a4785c86bdfd25d5e376a840f868
commit r13-9179-g4290b2dbef55a4785c86bdfd25d5e376a840f868 Author: Eric Botcazou <ebotca...@adacore.com> Date: Mon Oct 28 09:30:07 2024 +0100 ada: Fix bogus error for delta aggregate as expression function The compiler correctly accepts the other forms of aggregates. gcc/ada/ChangeLog: PR ada/113868 * par-ch6.adb (P_Subprogram) <Scan_Body_Or_Expression_Function>: Add delta aggregate alongside the other forms of aggregates. Diff: --- gcc/ada/par-ch6.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/par-ch6.adb b/gcc/ada/par-ch6.adb index 2de8cee93b18..9eb72ee89311 100644 --- a/gcc/ada/par-ch6.adb +++ b/gcc/ada/par-ch6.adb @@ -884,6 +884,7 @@ package body Ch6 is if not (Paren_Count (Expr) /= 0 or else Nkind (Expr) in N_Aggregate + | N_Delta_Aggregate | N_Extension_Aggregate | N_Quantified_Expression) then