public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1592] [Ada] Crash on a nested aggregate containing controlled objects
@ 2021-06-17 14:34 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-17 14:34 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-1592-gb4d46ee9a15b83552134476e9c0f691df1bfa123
Author: Arnaud Charlet <charlet@adacore.com>
Date:   Fri Mar 5 10:11:57 2021 -0500

    [Ada] Crash on a nested aggregate containing controlled objects
    
    gcc/ada/
    
            * exp_util.adb (Find_Hook_Context): Do not stop on an aggregate
            node.

Diff:
---
 gcc/ada/exp_util.adb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb
index c2cdb4cfdf4..71052c003f7 100644
--- 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


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

only message in thread, other threads:[~2021-06-17 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 14:34 [gcc r12-1592] [Ada] Crash on a nested aggregate containing controlled objects Pierre-Marie de Rodat

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