[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.
This commit is contained in:
parent
580fe036c8
commit
5849018425
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue