From patchwork Fri Jul 21 21:29:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 1811149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=VsvRS7VV; dkim-atps=neutral Received: from server2.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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R72lX3fZwz1yZ7 for ; Sat, 22 Jul 2023 07:30:13 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 786AE386F43C for ; Fri, 21 Jul 2023 21:30:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 786AE386F43C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689975010; bh=EJpz2PVlZs27mrkEhl2W+SQSrP7gf2BmwXQRoBPaiZc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=VsvRS7VV9S9GXkmstWvuGiSmQZ9n7nceKSE4Rj3vGQ8BsC6uecAWoUflMJEkTJv99 pvUYhJIJ0XO6eDGlrrxkpxs66DsgFVelCk8Ar9TXBOXCpPGQAa3cbj91/fmbcapxJn b1aU2yLX3vsYHIwf8TurAg3fKNskyRSi4/98Qm7c= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) by sourceware.org (Postfix) with ESMTPS id F25DE3870887 for ; Fri, 21 Jul 2023 21:29:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F25DE3870887 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-566e793e0a0so1550241eaf.2 for ; Fri, 21 Jul 2023 14:29:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689974986; x=1690579786; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EJpz2PVlZs27mrkEhl2W+SQSrP7gf2BmwXQRoBPaiZc=; b=QOPyAF/zIXvYD7HroCU1BBBRcVaYEkQv50flkBerHH1WtJZIHhpgfLfTMJ5ChBHL5X brSYvZy/B+/qw0Jwp/GhmuDtCClkfwgQc9t/tMdl7NgcgaScIe5MXoJvTHnzz+Yxgpkx MuWVmgu6g5DsxCZRp2VLYiSit2L545NOb7L0uEla84JGxwKCsEzsrSgy2KXFuJpvbjDt DOc6j5DOkfLKx8qsqT6vu3h3LQ0gSz5V0YpSpBAMVNXRUjPhX1oVkVZyprAgy7AMJDKJ 7mtJOGe0CRASQpj3D0/8P1bed3cr6Ai2I0p8xyUp6wfS3J7gDTX/GDAOPyTpoAGqK5K9 +WnA== X-Gm-Message-State: ABy/qLZUvnu32qioU5C44DKxjsWzAb1N9wL+0uZXJUzo9CUfls+QkBbE 1vA14+RRY4uLSHX2CscrSAzMCN5kTjerIdEX5XA= X-Google-Smtp-Source: APBJJlGBML8FmJt5dFOKnQd2xKgtjE2SNFc9krOmePgsoz6sVADXLSJu1vwXlWZ6yHJ2ZWc1ocawKg== X-Received: by 2002:a4a:830a:0:b0:566:fb49:ba57 with SMTP id f10-20020a4a830a000000b00566fb49ba57mr2438603oog.9.1689974985703; Fri, 21 Jul 2023 14:29:45 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:dec7:8fac:befc:dbee]) by smtp.gmail.com with ESMTPSA id v12-20020a4a974c000000b0056082ad01desm1984155ooi.14.2023.07.21.14.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 14:29:45 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Andrew Pinski , Patrick Palka , Thiago Jung Bauermann Subject: [PATCH] testsuite: Adjust g++.dg/gomp/pr58567.C to new compiler message Date: Fri, 21 Jul 2023 18:29:37 -0300 Message-ID: <20230721212937.1784983-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Thiago Jung Bauermann via Gcc-patches From: Thiago Jung Bauermann Reply-To: Thiago Jung Bauermann Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Commit 92d1425ca780 "c++: redundant targ coercion for var/alias tmpls" changed the compiler error message in this testcase from : In instantiation of 'void foo() [with T = int]': :14:11: required from here :8:22: error: 'int' is not a class, struct, or union type :8:22: error: 'int' is not a class, struct, or union type :8:22: error: 'int' is not a class, struct, or union type :8:3: error: expected iteration declaration or initialization compiler exited with status 1 to: : In instantiation of 'void foo() [with T = int]': :14:11: required from here :8:22: error: 'int' is not a class, struct, or union type :8:3: error: invalid type for iteration variable 'i' compiler exited with status 1 Excess errors: :8:3: error: invalid type for iteration variable 'i' Andrew Pinski analysed the issue in PR 110756 and considered that it was a testsuite issue in that the error message changed slightly. Also, it's a better error message. Therefore, we only need to adjust the testcase to expect the new message. gcc/testsuite/ChangeLog: PR testsuite/110756 g++.dg/gomp/pr58567.C: Adjust to new compiler error message. --- gcc/testsuite/g++.dg/gomp/pr58567.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/gomp/pr58567.C b/gcc/testsuite/g++.dg/gomp/pr58567.C index 35a5bb027ffe..866d831c65e4 100644 --- a/gcc/testsuite/g++.dg/gomp/pr58567.C +++ b/gcc/testsuite/g++.dg/gomp/pr58567.C @@ -5,7 +5,7 @@ template void foo() { #pragma omp parallel for - for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|expected iteration declaration or initialization" } */ + for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|invalid type for iteration variable 'i'" } */ ; }