* [Ada] Fix the Ada 2022 iterated component association RM reference
@ 2022-05-13 8:07 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-13 8:07 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 284 bytes --]
Fix the error message pointing to the Ada reference section on mixed
iterated component association being forbidden. Remove useless loop.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_aggr.adb (Resolve_Array_Aggregate): Fix ARM reference.
Remove useless loop.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 1153 bytes --]
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb
--- a/gcc/ada/sem_aggr.adb
+++ b/gcc/ada/sem_aggr.adb
@@ -1833,7 +1833,7 @@ package body Sem_Aggr is
or else No (Iterator_Specification (Assoc))
then
Error_Msg_N ("mixed iterated component association"
- & " (RM 4.4.3 (17.1/5))",
+ & " (RM 4.3.3 (17.1/5))",
Assoc);
return False;
end if;
@@ -1852,7 +1852,7 @@ package body Sem_Aggr is
and then Present (Iterator_Specification (Assoc))
then
Error_Msg_N ("mixed iterated component association"
- & " (RM 4.4.3 (17.1/5))",
+ & " (RM 4.3.3 (17.1/5))",
Assoc);
return False;
end if;
@@ -1860,9 +1860,6 @@ package body Sem_Aggr is
Next (Assoc);
end loop;
- while Present (Assoc) loop
- Next (Assoc);
- end loop;
end if;
Assoc := First (Component_Associations (N));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-13 8:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 8:07 [Ada] Fix the Ada 2022 iterated component association RM reference 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).