From patchwork Tue Jun 4 15:41:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Martin X-Patchwork-Id: 1943460 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nasilyan.com header.i=@nasilyan.com header.a=rsa-sha256 header.s=xce2voaxvxhmx73p47whqmbxwwvd7qkl header.b=n8+iu0gs; dkim=pass (1024-bit key; unprotected) header.d=amazonses.com header.i=@amazonses.com header.a=rsa-sha256 header.s=uku4taia5b5tsbglxyj6zym32efj7xqv header.b=LUYS06Zd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vtvvw1WKyz20PW for ; Wed, 5 Jun 2024 01:41:30 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CEB4C39A499D for ; Tue, 4 Jun 2024 15:41:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from a2-65.smtp-out.eu-west-1.amazonses.com (a2-65.smtp-out.eu-west-1.amazonses.com [54.240.2.65]) by sourceware.org (Postfix) with ESMTPS id 44E733832E6C for ; Tue, 4 Jun 2024 15:41:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44E733832E6C Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=nasilyan.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eu-west-1.amazonses.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 44E733832E6C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.240.2.65 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717515669; cv=none; b=cQIrEHV9ECqztDTvVePlwRWAWh+TQ/qM0xA9wTHbIqbWgHGoGbUey4hLzNrZN0W6hXB65VzR5XvYH6lIM3qHY5qYRSsTEVHHhC7M2EUKmBgAM8IvoYWOO3nEll97I4eLWMVPTzeskWGUhEuyHlNUxI57jJzSnzG1cTfDsHv9Urc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717515669; c=relaxed/simple; bh=ENAg1jpnS6VWePzRGNIv58BnUCdEICDSGQP5S0PunMc=; h=DKIM-Signature:DKIM-Signature:Subject:From:To:Date:Mime-Version: Message-ID; b=qG1XqcwyExVDymc2VwKXWbyQKJgxIsaCEG/X7AZJRFPNLu8TdW+G1ZBD70QxRJFtj5RVF2AS1VisoG+c+kd4nd3w4cT1teIWTVOtd1fZE1te/lsOwqTfP9pwvS/9TP7jM/3KFFafd4Ifx6z7QOEjBbwDUdqEp1KSOuch563r/2Y= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=xce2voaxvxhmx73p47whqmbxwwvd7qkl; d=nasilyan.com; t=1717515666; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id; bh=ENAg1jpnS6VWePzRGNIv58BnUCdEICDSGQP5S0PunMc=; b=n8+iu0gs/UYG1S6RSGXzEpG03rYo04p7I2Cs2mpv+EgzVIz23xHOJh9Bmn+KOLfN PcLnQr1EFy7Stnw9A/jgJBNHSavSyJLSPf8EmOYRi1Uqu8UXXKWRP67UTDZreoChNI4 PudcVr1MxK4Yb4piTnRisfkGW6TXMIhjEXygZWyA= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1717515665; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id:Feedback-ID; bh=ENAg1jpnS6VWePzRGNIv58BnUCdEICDSGQP5S0PunMc=; b=LUYS06ZdzJE1SNvtn757fdPXZ/UXJRul2R4S+LvWD3mJd9Qvk6y1fHbaOmgxhsUl xd+vsCy9bZqpCqTtcheuMN2N1JMCE9lg0ykpceT51EdqEQMaAsdIpAHO9+g7g+BFQl3 wpvybGyvsI80STEHWa3/EZmVkZjsvINrL1ckBhyk= Subject: [PATCH] Add missing space after seen_error in gcc/cp/pt.cc From: =?utf-8?q?Simon_Martin?= To: =?utf-8?q?gcc-patches=40gcc=2Egnu=2Eorg?= Date: Tue, 4 Jun 2024 15:41:05 +0000 Mime-Version: 1.0 References: <20240604154102.96527-1-simon@nasilyan.com> X-Mailer: Amazon WorkMail Thread-Index: AQHatpWc8BIT3V9HR0OF7dQeaXRaOA== Thread-Topic: [PATCH] Add missing space after seen_error in gcc/cp/pt.cc X-Original-Mailer: git-send-email 2.44.0 X-Wm-Sent-Timestamp: 1717515665 Message-ID: <0102018fe3e941ad-27a69f98-15d7-4783-9c61-50436bd08542-000000@eu-west-1.amazonses.com> Feedback-ID: ::1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2024.06.04-54.240.2.65 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org I realized that I committed a change with a missing space after seen_error. This fixes it, as well as another occurrence in the same file. Apologies for the mistake - I'll commit this as obvious. gcc/cp/ChangeLog: * pt.cc (tsubst_expr): Add missing space after seen_error. (dependent_type_p): Likewise. --- gcc/cp/pt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc index edb94a000ea..8cbcf7cdf7a 100644 --- a/gcc/cp/pt.cc +++ b/gcc/cp/pt.cc @@ -20918,7 +20918,7 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl) be using lambdas anyway, so it's ok to be stricter. Be strict with C++20 template-id ADL too. And be strict if we're already failing anyway. */ - bool strict = in_lambda || template_id_p || seen_error(); + bool strict = in_lambda || template_id_p || seen_error (); bool diag = true; if (strict) error_at (cp_expr_loc_or_input_loc (t), @@ -28020,7 +28020,7 @@ dependent_type_p (tree type) providing us with a dependent type. */ gcc_assert (type); gcc_assert (TREE_CODE (type) != TEMPLATE_TYPE_PARM || is_auto (type) - || seen_error()); + || seen_error ()); return false; }