public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-388] [Ada] Fix the Ada 2022 iterated component association RM reference Date: Fri, 13 May 2022 08:07:40 +0000 (GMT) [thread overview] Message-ID: <20220513080740.75587384F02D@sourceware.org> (raw) https://gcc.gnu.org/g:84f20139792e97f9fb6e10918e271c3277d0f178 commit r13-388-g84f20139792e97f9fb6e10918e271c3277d0f178 Author: Marc Poulhiès <poulhies@adacore.com> Date: Tue Feb 15 15:12:38 2022 +0100 [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. Diff: --- gcc/ada/sem_aggr.adb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index 6e73aac4a10..0437a501e79 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));
reply other threads:[~2022-05-13 8:07 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220513080740.75587384F02D@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).