From patchwork Wed Feb 8 13:00:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 54424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3440312wrn; Wed, 8 Feb 2023 05:01:28 -0800 (PST) X-Google-Smtp-Source: AK7set+0T35+/rd4cWeRnePWZHdb+j0SCMuqksIveTt/B/ohuvWJifh52SIztL5eQrC5yFnnPiBk X-Received: by 2002:a17:906:4fc5:b0:878:683c:f0d1 with SMTP id i5-20020a1709064fc500b00878683cf0d1mr10923862ejw.38.1675861288245; Wed, 08 Feb 2023 05:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675861288; cv=none; d=google.com; s=arc-20160816; b=XvqUXQCkP5MPX937bZG8vB0iGH/hqlFXDEDEfRUFcxL9slDpMT3+GMdFQQRLTccl+N 5iDgmzgQKSzG2gBVj6BMN8i/j1BkGEgBzlPZitDI9Kpg8HDwFe5oAJBW7WxUkxIgGopN atfzVvCJ5ZXxL2VWZwb3FYZigu10HNMZRyjuFDS5EcC1R+2bSOv+84fyBMtBzXl43LOP wRuTazZBShxp2+AiuFywK4guttsYknPkmjdc55sjenIYerR5wGfl7jGS84QeUV2EAV2E 2iax4qMezrjp9EK14qM9VUXdptjIjolG7Ydk4TXUIIXMIUnFG5uA1uCGTaE87y9Wa6JA PMpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=gHSNqVafT8xuuykYF1gun2m3oAIGg02LevczBtqUu/Q=; b=YPHcvcIpVDPdKVXY7+QY2btDCiSaUVq5OUlXEfKMlVXyXP66erdrAI0G6wNthvcPpF l3Ghw9FVQn6zg89n5QewKWvOm4sXlS8kTJew1Hf9xMVHgo/DJU90gGcIvkHJKXthD5mI skjM9OXKZaT2Hn+os+ROC+UZTOg2g2gyBuV5KK61a410XztruCtElgtvrOL8IRUUCyPS amqZgT7Zqk1/AMMveq/ehq0L404MMdnvP8z12+DcGifEEserDkCHPw5aZe/VVnTywHHU k1TF+we1Uh8Wfh3RD9EKhB6AWvMywQEHfWFVjoD5fd49aceQuE4aUDvJOsHiocCFvFEj KMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=j6Wjs4IV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 25-20020a170906015900b0084514612c2bsi23590921ejh.610.2023.02.08.05.01.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 05:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=j6Wjs4IV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 104D33858C3A for ; Wed, 8 Feb 2023 13:01:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 104D33858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675861287; bh=gHSNqVafT8xuuykYF1gun2m3oAIGg02LevczBtqUu/Q=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=j6Wjs4IVAxfKPFHj6SwSXytSBNabzb66SLPw99cIpCIsKkPw/rueOiZAAFnD/QmIX txaXZHo7X8c1f5vVNrbrVAp/OGCRNVUEAjliy7G3z2gi4p3ZfwLNDnQ6dSGDzU4izW 2sBQWOiJxqFVZKCukyCWGye8rG7m8pRxlKl9Kquo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 047AA3858D39 for ; Wed, 8 Feb 2023 13:00:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 047AA3858D39 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-316-PTH4OiOXNYuuu2vMdB3DrQ-1; Wed, 08 Feb 2023 08:00:42 -0500 X-MC-Unique: PTH4OiOXNYuuu2vMdB3DrQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CAC362804824 for ; Wed, 8 Feb 2023 13:00:41 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5801C492C3F for ; Wed, 8 Feb 2023 13:00:41 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 318D0cNl3953235 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 8 Feb 2023 14:00:38 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 318D0bEh3953234 for gcc-patches@gcc.gnu.org; Wed, 8 Feb 2023 14:00:37 +0100 Date: Wed, 8 Feb 2023 14:00:37 +0100 To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up PR108525 test [PR108525] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP 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: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757267925912550430?= X-GMAIL-MSGID: =?utf-8?q?1757267925912550430?= Hi! Seems when committing the PR108525 fix I've missed that a test with the same name had been added a few hours before for PR108526. This patch separates the PR108525 test into a new file. Tested on x86_64-linux, committed to trunk as obvious. 2023-02-08 Jakub Jelinek PR c++/108525 * g++.dg/cpp23/static-operator-call5.C: Move PR108525 testcase incorrectly applied into PR108526 testcase ... * g++.dg/cpp23/static-operator-call6.C: ... here. New test. Jakub --- gcc/testsuite/g++.dg/cpp23/static-operator-call5.C.jj 2023-01-25 15:13:23.653643155 +0100 +++ gcc/testsuite/g++.dg/cpp23/static-operator-call5.C 2023-02-08 13:52:17.273674484 +0100 @@ -1,8 +1,3 @@ -// PR c++/108525 -// { dg-do compile { target c++23 } } - -auto b = [](...) static { return 1; }; -auto foo () { return b (); } // PR c++/108526 // { dg-do compile { target c++23 } } --- gcc/testsuite/g++.dg/cpp23/static-operator-call6.C.jj 2023-02-08 13:51:53.856022995 +0100 +++ gcc/testsuite/g++.dg/cpp23/static-operator-call6.C 2023-02-08 13:52:06.831829883 +0100 @@ -0,0 +1,5 @@ +// PR c++/108525 +// { dg-do compile { target c++23 } } + +auto b = [](...) static { return 1; }; +auto foo () { return b (); }