public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1639] [Ada] Don't check for misspelling of Not_A_Restriction_Id
@ 2022-07-12 12:26 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-07-12 12:26 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2b98bb583fbf9110e7282c1221448c15efb4bd2e
commit r13-1639-g2b98bb583fbf9110e7282c1221448c15efb4bd2e
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Fri Jun 24 09:07:51 2022 +0200
[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:
---
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-12 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 12:26 [gcc r13-1639] [Ada] Don't check for misspelling of Not_A_Restriction_Id Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).