From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7871) id 0446A385840D; Tue, 8 Nov 2022 08:40:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0446A385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667896839; bh=mSANfYuqkt8lCIQF6YEVa2XgYistn3Q9T5ozMYizar8=; h=From:To:Subject:Date:From; b=M0wJjPiPupWvMuV1xwuReLoY5RCKjfpy1Axb6Kgilee057XiVGa2Yx0EGlOU06q3S y/QDBiBtgKMWnsou+eDgBZDbM7wgiVHOlZZ6FY46178NwNvdFdSGu1FPlsABMkYKhz eGHYTGFc7GH4UnbiPccSxXJ5j+HSbPrlKX2zyO/0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marc Poulhi?s To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3779] ada: Allow initialization of limited objects with delta aggregates X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: 4a22fdac0f6e79478768e6792c9804816ecb3f4a X-Git-Newrev: 2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa Message-Id: <20221108084039.0446A385840D@sourceware.org> Date: Tue, 8 Nov 2022 08:40:38 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa commit r13-3779-g2ff87e21c2053fe3a48ced3e2cc9ab1b900aceaa Author: Piotr Trojanek Date: Thu Oct 14 23:24:54 2021 +0200 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. Diff: --- gcc/ada/sem_ch3.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 76dc6325060..f6b852051dc 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