public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Giuliano Belinassi <giulianob@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/autopar_devel] [Ada] Fix assertion failure on qualified type names in predicates
Date: Sat, 22 Aug 2020 22:37:46 +0000 (GMT)	[thread overview]
Message-ID: <20200822223746.A4CA33850419@sourceware.org> (raw)

https://gcc.gnu.org/g:21d0292d5d4178f5cc93bf1ae6c8c7d6669ac445

commit 21d0292d5d4178f5cc93bf1ae6c8c7d6669ac445
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Apr 6 14:52:27 2020 +0200

    [Ada] Fix assertion failure on qualified type names in predicates
    
    2020-06-16  Piotr Trojanek  <trojanek@adacore.com>
    
    gcc/ada/
    
            * sem_ch13.adb (Membership_Entry): Relax assertion to also
            recognize qualified identifiers.

Diff:
---
 gcc/ada/sem_ch13.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 19a0780cc1e..d7d5a47fded 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -8566,7 +8566,7 @@ package body Sem_Ch13 is
 
          --  Identifier (other than static expression) case
 
-         else pragma Assert (Nkind (N) = N_Identifier);
+         else pragma Assert (Nkind_In (N, N_Expanded_Name, N_Identifier));
 
             --  Type case


                 reply	other threads:[~2020-08-22 22:37 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=20200822223746.A4CA33850419@sourceware.org \
    --to=giulianob@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).