From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id D2117386181D; Tue, 7 Jul 2020 09:27:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2117386181D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594114075; bh=U9Cvz638qRIIUIo5HiuqSpOIqBKQtjg6bH6Vn3+imRI=; h=From:To:Subject:Date:From; b=vMoYaF5ld4BLvehxWju4TkDF8N+DXIxaCRi0DxCDrtLwJTxsnrDw9Pg8tJkZZo3LF UE2OQQtUxMBB5APf27/919/0/GBFIZ4E5jk+kIdzF82wUVBpLkDL1rqXGCr/c32awr XtZ5BRGgxKWYGNyOzJk4K//nsTxT+wcwK8CeYtfM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-1874] [Ada] Fix expansion of delta aggregates with slices X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: dab6432039b8a92acd2bf4490771c9f5b347c005 X-Git-Newrev: c78efe921c1fab590293476ae9910e1bb5b090c4 Message-Id: <20200707092755.D2117386181D@sourceware.org> Date: Tue, 7 Jul 2020 09:27:55 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 09:27:55 -0000 https://gcc.gnu.org/g:c78efe921c1fab590293476ae9910e1bb5b090c4 commit r11-1874-gc78efe921c1fab590293476ae9910e1bb5b090c4 Author: Piotr Trojanek Date: Sun May 10 21:12:33 2020 +0200 [Ada] Fix expansion of delta aggregates with slices gcc/ada/ * exp_aggr.adb (Expand_N_Delta_Aggregate): Use type of the delta base expression for the anonymous object of the delta aggregate. Diff: --- gcc/ada/exp_aggr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb index 6832d401eb6..884c0ee434b 100644 --- a/gcc/ada/exp_aggr.adb +++ b/gcc/ada/exp_aggr.adb @@ -6845,7 +6845,7 @@ package body Exp_Aggr is procedure Expand_N_Delta_Aggregate (N : Node_Id) is Loc : constant Source_Ptr := Sloc (N); - Typ : constant Entity_Id := Etype (N); + Typ : constant Entity_Id := Etype (Expression (N)); Decl : Node_Id; begin