From: Arnaud Charlet Date: Thu, 4 Jun 2020 09:09:59 +0000 (-0400) Subject: [Ada] Spurious error on Predicate_Failure aspect X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=584901842554439c3c1306a7966192da4102aa33;p=gcc.git [Ada] Spurious error on Predicate_Failure aspect gcc/ada/ * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Add proper handling of Aspect_Predicate_Failure, consistent with Check_Aspect_At_Freeze_Point. --- diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index 62836249e11..fcd94da2603 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -10519,6 +10519,8 @@ package body Sem_Ch13 is Preanalyze_Spec_Expression (End_Decl_Expr, T); Pop_Type (Ent); + elsif A_Id = Aspect_Predicate_Failure then + Preanalyze_Spec_Expression (End_Decl_Expr, Standard_String); else Preanalyze_Spec_Expression (End_Decl_Expr, T); end if;