]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix bogus error for delta aggregate as expression function
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Oct 2024 08:30:07 +0000 (09:30 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 12 Nov 2024 17:46:16 +0000 (18:46 +0100)
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.

gcc/ada/par-ch6.adb

index 2ce23e1eb058430ecf7512d33f7e3ba9314bd224..7965855109881f199f828322ce574902b7d70d8b 100644 (file)
@@ -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