aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2022-02-15 15:12:38 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-13 08:04:28 +0000
commit84f20139792e97f9fb6e10918e271c3277d0f178 (patch)
treef25e37bfe0fc1a85d3e13ed72c83fadfa04fef70 /gcc/ada
parent9bea1bd335b54c2ffd77d56d29cfeddf84eec613 (diff)
downloadgcc-84f20139792e97f9fb6e10918e271c3277d0f178.zip
gcc-84f20139792e97f9fb6e10918e271c3277d0f178.tar.gz
gcc-84f20139792e97f9fb6e10918e271c3277d0f178.tar.bz2
[Ada] Fix the Ada 2022 iterated component association RM reference
Fix the error message pointing to the Ada reference section on mixed iterated component association being forbidden. Remove useless loop. gcc/ada/ * sem_aggr.adb (Resolve_Array_Aggregate): Fix ARM reference. Remove useless loop.
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/sem_aggr.adb7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb
index 6e73aac..0437a50 100644
--- 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));