From patchwork Tue Jul 6 14:48:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1501298 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=adacore-com.20150623.gappssmtp.com header.i=@adacore-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=RW/TDrc4; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GK5DY0glKz9sWl for ; Wed, 7 Jul 2021 00:54:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF73E388A406 for ; Tue, 6 Jul 2021 14:54:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id F3FC5388981B for ; Tue, 6 Jul 2021 14:48:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F3FC5388981B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-lj1-x236.google.com with SMTP id z9so1415295ljm.2 for ; Tue, 06 Jul 2021 07:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=WiPFhGgknQl+MbeW8rPmFC7vG1mGVXItCt2jDqRdVaw=; b=RW/TDrc4OVSvu+fYkLUuish9dTWLlf4NBC9f/hbJWkRAr/lvWpznr1rsr8No9XGlm0 q/0WEWES3MiHZsp/KUyKfFwHO6LKj/7kqZEb8mEXse7rY0+ZYlPgpyariPQixqWzfIgj 2tNNuc0DirQuXfz1gEHr+J3DUq+OlXiHDFQOITUvlXyiTZGK7u6q8QSXIG4jOwDg661h X8miazmQBGTvjT/+e6aZNZ3BYmVvL0Y3ZBbmYId6I2Mk6evaGPsN43fTWvSwMBxGeKeT KvEOr6uu1U19yg6TygoFjTwn7M0LKI0h1IMrQhNg+q01j796lIO16a0jvgnelNZCnLHq D5+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=WiPFhGgknQl+MbeW8rPmFC7vG1mGVXItCt2jDqRdVaw=; b=OXlVfTKKKYzEpQeTuCh8IAdLNuJiYS/z/BoPLZoJW6ssbEI6dc7Ze5wmMVuQ7AT6Yv PAk8xtIEdWYe97ddpxEnMAXnZZsiWGux18+bLJnUiIC52SuxCJZSWkSQYSkSwNNRP6j9 U0xTr/jk0/jGV+W5MorUSlq0hdznAOUl6ij5n5ZzVCUInBQ4Zt4ccyuaqg9yRySnFOE9 kV09GjonDb6aNGLFQsyRB1H9NrQynbf1mk+E20jFLMuTimQQZFCryge81HZVEgnUmXz4 LloDIksG3WbXw3swbbRnT736iE+VVAR8Bn6FtQzEkrCNhX/ixy/gk+krU6Llk7bcAyzz 9Mjw== X-Gm-Message-State: AOAM533frMvHBFUWkslq8fWQNWWgrvAJ5jyhL9/7O9slK5qUfFzKx7qv ETlVqQQujb+kXRHqItvk8C56fppxq/OJCA== X-Google-Smtp-Source: ABdhPJxaotnU7158KlmGIjkN8TO/7S9Jlc9d0hnb2Vw6nQSMzHvFWW+tJsPxLVFtx9yRq4V8j31ozQ== X-Received: by 2002:a2e:3508:: with SMTP id z8mr4316600ljz.101.1625582910905; Tue, 06 Jul 2021 07:48:30 -0700 (PDT) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id f1sm1424523lfs.211.2021.07.06.07.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 07:48:30 -0700 (PDT) Date: Tue, 6 Jul 2021 14:48:27 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Subject: [Ada] Missing space in error message for pattern matching Message-ID: <20210706144827.GA2250410@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yannick Moy Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Some error messages issued regarding limitations of the current implementation of the GNAT extension for pattern matching are missing space characters. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_case.adb: Fix error message. diff --git a/gcc/ada/sem_case.adb b/gcc/ada/sem_case.adb --- a/gcc/ada/sem_case.adb +++ b/gcc/ada/sem_case.adb @@ -2908,7 +2908,7 @@ package body Sem_Case is begin if Has_Predicates (Subtyp) then Error_Msg_N - ("subtype of case selector (or subcomponent thereof)" & + ("subtype of case selector (or subcomponent thereof) " & "has predicate", N); elsif Is_Discrete_Type (Subtyp) then if not Is_Static_Subtype (Subtyp) then @@ -2938,7 +2938,7 @@ package body Sem_Case is elsif Is_Record_Type (Subtyp) then if Has_Discriminants (Subtyp) then Error_Msg_N - ("type of case selector (or subcomponent thereof)" & + ("type of case selector (or subcomponent thereof) " & "is discriminated", N); else declare