public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5086] [Ada] Add guard against previous error for peculiar ACATS test
@ 2021-11-10  8:58 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-11-10  8:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8c787be254c50d208a15a18033d29de419c7c165

commit r12-5086-g8c787be254c50d208a15a18033d29de419c7c165
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Nov 2 16:54:36 2021 +0100

    [Ada] Add guard against previous error for peculiar ACATS test
    
    gcc/ada/
    
            * sem_ch4.adb (Find_Non_Universal_Interpretations): Add guard.

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

diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb
index 9b1d908097d..6a3d8575964 100644
--- a/gcc/ada/sem_ch4.adb
+++ b/gcc/ada/sem_ch4.adb
@@ -6685,6 +6685,12 @@ package body Sem_Ch4 is
       It    : Interp;
 
    begin
+      --  Defend against previous error
+
+      if Nkind (R) = N_Error then
+         return;
+      end if;
+
       if T1 = Universal_Integer or else T1 = Universal_Real
 
         --  If the left operand of an equality operator is null, the visibility


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

only message in thread, other threads:[~2021-11-10  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10  8:58 [gcc r12-5086] [Ada] Add guard against previous error for peculiar ACATS test 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).