diff options
author | Tucker Taft <taft@adacore.com> | 2023-11-04 13:53:28 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-11-28 10:35:47 +0100 |
commit | 834f2973606c63b4cd9e27e3bf24f01ee1347568 (patch) | |
tree | fd162e53645f8481366757fd9920ffaa738ece77 /gcc | |
parent | e6c01334ccfca8bc748c8de90ba2a636d1662490 (diff) | |
download | gcc-834f2973606c63b4cd9e27e3bf24f01ee1347568.zip gcc-834f2973606c63b4cd9e27e3bf24f01ee1347568.tar.gz gcc-834f2973606c63b4cd9e27e3bf24f01ee1347568.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_scil.adb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/sem_scil.adb b/gcc/ada/sem_scil.adb index da8fab6..d7679d8 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)); |