diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2021-10-14 23:24:54 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-08 09:34:58 +0100 |
commit | 2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa (patch) | |
tree | ee2f8ef9256ea690812dcf08990f70d4e913de3e /gcc | |
parent | 4a22fdac0f6e79478768e6792c9804816ecb3f4a (diff) | |
download | gcc-2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa.zip gcc-2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa.tar.gz gcc-2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa.tar.bz2 |
ada: Allow initialization of limited objects with delta aggregates
Objects of a limited type can be initialized with "aggregates", which is
a collective term for ordinary aggregates (i.e. record aggregates and
array aggregates), extension aggregates and finally for delta
aggregates (introduced by Ada 2022).
gcc/ada/
* sem_ch3.adb (OK_For_Limited_Init_In_05): Handle delta aggregates
just like other aggregates.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_ch3.adb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 76dc632..f6b8520 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -20145,6 +20145,7 @@ package body Sem_Ch3 is case Nkind (Original_Node (Exp)) is when N_Aggregate + | N_Delta_Aggregate | N_Extension_Aggregate | N_Function_Call | N_Op |