public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-1874] [Ada] Fix expansion of delta aggregates with slices Date: Tue, 7 Jul 2020 09:27:55 +0000 (GMT) [thread overview] Message-ID: <20200707092755.D2117386181D@sourceware.org> (raw) https://gcc.gnu.org/g:c78efe921c1fab590293476ae9910e1bb5b090c4 commit r11-1874-gc78efe921c1fab590293476ae9910e1bb5b090c4 Author: Piotr Trojanek <trojanek@adacore.com> 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
reply other threads:[~2020-07-07 9:27 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200707092755.D2117386181D@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).