public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5903] ada: Fix predicate failure that occurred in a test case
@ 2023-11-28  9:37 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-11-28  9:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:834f2973606c63b4cd9e27e3bf24f01ee1347568

commit r14-5903-g834f2973606c63b4cd9e27e3bf24f01ee1347568
Author: Tucker Taft <taft@adacore.com>
Date:   Sat Nov 4 13:53:28 2023 +0000

    ada: Fix predicate failure that occurred in a test case
    
    The CodePeer test case illustrating a problem where a "high"
    precondition failure was expected, died in the GNAT FE on
    input_reading.adb.  The problem was in Check_SCIL, where
    it didn't properly handle a discriminant_specification.
    
    gcc/ada/
    
            * sem_scil.adb: Handle discriminant specification.

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

diff --git a/gcc/ada/sem_scil.adb b/gcc/ada/sem_scil.adb
index da8fab69a97..d7679d8b50f 100644
--- a/gcc/ada/sem_scil.adb
+++ b/gcc/ada/sem_scil.adb
@@ -91,6 +91,7 @@ package body Sem_SCIL is
             elsif Nkind (Ctrl_Tag) in N_Object_Renaming_Declaration
                                     | N_Object_Declaration
                                     | N_Parameter_Specification
+                                    | N_Discriminant_Specification
             then
                Ctrl_Typ := Etype (Defining_Identifier (Ctrl_Tag));

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

only message in thread, other threads:[~2023-11-28  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28  9:37 [gcc r14-5903] ada: Fix predicate failure that occurred in a test case Marc Poulhi?s

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