public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] [Ada] Fix assertion failure on qualified type names in predicates
@ 2020-08-22 22:37 Giuliano Belinassi
  0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 22:37 UTC (permalink / raw)
  To: gcc-cvs

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


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

only message in thread, other threads:[~2020-08-22 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 22:37 [gcc/devel/autopar_devel] [Ada] Fix assertion failure on qualified type names in predicates Giuliano Belinassi

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