From 2b98bb583fbf9110e7282c1221448c15efb4bd2e Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Fri, 24 Jun 2022 09:07:51 +0200 Subject: [PATCH] [Ada] Don't check for misspelling of Not_A_Restriction_Id When looking for a misspelling of a restriction identifier we should ignore the Not_A_Restriction_Id literal, because it doesn't represent any restriction. gcc/ada/ * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Fix range of iteration. --- gcc/ada/sem_prag.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index 35910400cf9..982fdf811c6 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -10561,7 +10561,7 @@ package body Sem_Prag is -- Check for possible misspelling - for J in Restriction_Id loop + for J in All_Restrictions loop declare Rnm : constant String := Restriction_Id'Image (J); -- 2.47.2