projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab6432
)
[Ada] Fix expansion of delta aggregates with slices
author
Piotr Trojanek
<trojanek@adacore.com>
Sun, 10 May 2020 19:12:33 +0000
(21:12 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Tue, 7 Jul 2020 09:26:54 +0000
(
05:26
-0400)
gcc/ada/
* exp_aggr.adb (Expand_N_Delta_Aggregate): Use type of the delta
base expression for the anonymous object of the delta aggregate.
gcc/ada/exp_aggr.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/exp_aggr.adb
b/gcc/ada/exp_aggr.adb
index 6832d401eb6066caf52ced6f916e04eeedd16f05..884c0ee434bc87cc648393d1c4a774a5d6eed5c5 100644
(file)
--- 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