From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 3F230385701D; Tue, 5 Oct 2021 08:23:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F230385701D MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4162] [Ada] Improve error message on array aggregates X-Act-Checkin: gcc X-Git-Author: Yannick Moy X-Git-Refname: refs/heads/master X-Git-Oldrev: b479c0f7d7c45f9d99292ca2aa71d7845c7769bc X-Git-Newrev: 4f3a016f51aa46152a9d635e2e594c6de20ace9e Message-Id: <20211005082336.3F230385701D@sourceware.org> Date: Tue, 5 Oct 2021 08:23:36 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 08:23:36 -0000 https://gcc.gnu.org/g:4f3a016f51aa46152a9d635e2e594c6de20ace9e commit r12-4162-g4f3a016f51aa46152a9d635e2e594c6de20ace9e Author: Yannick Moy Date: Thu Sep 16 16:51:15 2021 +0200 [Ada] Improve error message on array aggregates gcc/ada/ * sem_aggr.adb (Resolve_Array_Aggregate): Improve error message. Diff: --- gcc/ada/sem_aggr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index 3283fbbb8d9..9ae5ff61617 100644 --- a/gcc/ada/sem_aggr.adb +++ b/gcc/ada/sem_aggr.adb @@ -1954,7 +1954,7 @@ package body Sem_Aggr is or else (Nb_Choices = 1 and then not Others_Present)) then Error_Msg_N - ("named association cannot follow positional association", + ("cannot mix named and positional associations in array aggregate", First (Choice_List (First (Component_Associations (N))))); return Failure; end if;