From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-566e793e0a0so1550241eaf.2 for ; Fri, 21 Jul 2023 14:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689974985; x=1690579785; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EJpz2PVlZs27mrkEhl2W+SQSrP7gf2BmwXQRoBPaiZc=; b=iijyGUv9t9qsdmXMg74Kajpis+3S1Hc5NwOVlVI1xNOrjb/deW0lHcoyVdhJM0ohv9 qL/4vS3vLNT45yVRcNZ0sfRGlvil5TXuMIIyWUqM2kLublNbBJoolXUNywZ2fF9T8n3p vEBe0ZMoUfzHOnXv39Az92QeVMPhETc8aedCpmjLCz1XZ51DcwYYRP9+vnd7kQ/unljL QYMU9IF1oRB4o0XgtA3eqB/uB/9q+DeYyPQSo1I7OdTnrdgNF4pZ1/Tkuesq6E2MNu91 qUMGCgg36jvRq4U2HvJQn2Ith/NCwApouK4OPIldRJHLSaTZpNkxgDX2bV6MLHvImXX1 2tHA== 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) From: Thiago Jung Bauermann 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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'" } */ ; }