[gcc r12-3805] [Ada] Fix access to predicated parent in Itype
Pierre-Marie de Rodat
pmderodat@gcc.gnu.org
Wed Sep 22 15:10:44 GMT 2021
https://gcc.gnu.org/g:cbf1ffe1252430f0db0db18b0b695799bb31c242
commit r12-3805-gcbf1ffe1252430f0db0db18b0b695799bb31c242
Author: Yannick Moy <moy@adacore.com>
Date: Thu Jul 15 14:31:29 2021 +0200
[Ada] Fix access to predicated parent in Itype
gcc/ada/
* sem_ch13.adb (Build_Predicate_Functions): Access
Predicated_Parent only on subtypes.
Diff:
---
gcc/ada/sem_ch13.adb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 8cb3b425db9..2a5e86d929c 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -10191,6 +10191,9 @@ package body Sem_Ch13 is
or else
(Is_Itype (Typ)
and then not Comes_From_Source (Typ)
+ and then Ekind (Typ) in E_Array_Subtype
+ | E_Record_Subtype
+ | E_Record_Subtype_With_Private
and then Present (Predicated_Parent (Typ)))
then
return;
More information about the Gcc-cvs
mailing list