projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeafd22
)
[Ada] Crash on a nested aggregate containing controlled objects
author
Arnaud Charlet
<charlet@adacore.com>
Fri, 5 Mar 2021 15:11:57 +0000
(10:11 -0500)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 17 Jun 2021 14:32:15 +0000
(10:32 -0400)
gcc/ada/
* exp_util.adb (Find_Hook_Context): Do not stop on an aggregate
node.
gcc/ada/exp_util.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/exp_util.adb
b/gcc/ada/exp_util.adb
index c2cdb4cfdf4ea1edbee187363b6f51e8a517fa06..71052c003f74a45799680d049c7c159db1779115 100644
(file)
--- a/
gcc/ada/exp_util.adb
+++ b/
gcc/ada/exp_util.adb
@@
-6220,6
+6220,9
@@
package body Exp_Util is
| N_Discriminant_Association
| N_Parameter_Association
| N_Pragma_Argument_Association
+ | N_Aggregate
+ | N_Delta_Aggregate
+ | N_Extension_Aggregate
and then Nkind (Parent (Par)) not in N_Function_Call
| N_Procedure_Call_Statement
| N_Entry_Call_Statement