From: Piotr Trojanek Date: Fri, 24 Jun 2022 07:07:51 +0000 (+0200) Subject: [Ada] Don't check for misspelling of Not_A_Restriction_Id X-Git-Tag: basepoints/gcc-14~5568 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b98bb583fbf9110e7282c1221448c15efb4bd2e;p=thirdparty%2Fgcc.git [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. --- 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);