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 r12-1592] [Ada] Crash on a nested aggregate containing controlled objects
Date: Thu, 17 Jun 2021 14:34:51 +0000 (GMT)	[thread overview]
Message-ID: <20210617143451.4C6D4393AC1E@sourceware.org> (raw)

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


                 reply	other threads:[~2021-06-17 14:34 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=20210617143451.4C6D4393AC1E@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: link
Be 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).