public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-coroutines] [Ada] Fix expansion of delta aggregates with slices
@ 2020-07-07 20:47 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-07-07 20:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c78efe921c1fab590293476ae9910e1bb5b090c4

commit c78efe921c1fab590293476ae9910e1bb5b090c4
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-07 20:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 20:47 [gcc/devel/c++-coroutines] [Ada] Fix expansion of delta aggregates with slices Iain D Sandoe

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).