From 1aebc8bfdbe0d2e62e94943356d99174b525f1cb Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 28 Oct 2024 09:30:07 +0100 Subject: 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) : Add delta aggregate alongside the other forms of aggregates. --- gcc/ada/par-ch6.adb | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') diff --git a/gcc/ada/par-ch6.adb b/gcc/ada/par-ch6.adb index 7fe4337..c3cc572 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 -- cgit v1.1