From patchwork Mon Sep 12 16:45:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1166 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1964007wrt; Mon, 12 Sep 2022 09:47:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4JMcSE02DjfOaJQoTLUBF/ZtjNPqswdSEzWkdnUM+FsLem8WihKKNBW0TcCZN394mCletr X-Received: by 2002:a17:907:2cc8:b0:77d:6f62:7661 with SMTP id hg8-20020a1709072cc800b0077d6f627661mr4166796ejc.233.1663001260563; Mon, 12 Sep 2022 09:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663001260; cv=none; d=google.com; s=arc-20160816; b=0p7XZub4ceGnh5hdNwzS2GjzjCUqStxFrm/uoSdNSw/9c+MW3vIiog8wHBQXzwBi69 8BYi9CPnrN55vtoNQQe974s7uXWALtmqsxmaf7jTSa9xZDuYH4d/nhoy2w13SVk7YT4o tb0JNhZUvohiEIhzQOVYvedmaaa3vJl0zoSXxyAxV5jkiE1Njf3+MBHfDUaqKvx8/Pmx w6Noz/RN1nH6r0D9jDLmgjk5hzLXFYC4EJwQDV+5JQr3EGme0VamsxVVxA1V/bf01F91 Bqg8hfx6hLOLT/+53HBQPeOrMJPMpcyLeErs4fkgfIj2HodV08Gtn1bLBL7MI7IO0+P2 drRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=YiVfJJKyMFRTPb30HBSDZspjGAT8X/f0ELDYdIUceD0=; b=GSU9QjDnSlJNhNPQzFHS8+jFRVj3Lxy1SOvWY7xgrvb7IFNeKVIFRIbGG9BK2UcUe1 EpzEelj5s/nW8B9UAojFTDsFoYKf+aLsnXtmz1+JDiLuyms2GkDEy3PCms+TInMK/sdc gy8SV/CEQf44/I/aHFOnSNVOQe10E51rhq+5S2llQPaOeAr0Vd0Fnd5v4UKD8+5GiigW csOr1SG00BN/zmMgutud0GYZf0v5+0gZj+jFucc6YsxIfJwwcqhwZS/Y9FWNyLa5NXhm XbJnMFzABqltnwp3JNUUukOFGJz1/t2m3HkjAtKiUf4EPoKzaoAWELKUKbxbH2dZxBjV NwMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=h9VqeiG0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id cw18-20020a170906479200b0077f77eddc25si863199ejc.176.2022.09.12.09.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 09:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=h9VqeiG0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 EB064393BC37 for ; Mon, 12 Sep 2022 16:46:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB064393BC37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663001191; bh=YiVfJJKyMFRTPb30HBSDZspjGAT8X/f0ELDYdIUceD0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=h9VqeiG0R1v9clktTPWdckCRvv5fFAJr4X5UcIQqr2aCresWy+IAfHJ7Czzn7DL/K U+VcTP9fPnTQ1ae7Oy4VBUuzeZf1EZ5VD9aXpDgiAFMqYQHx/YVM1+U1pU9H1wBNpx +xtzsQjEF0KefcT1qv89dIJXuOVVe+aXtmMxlJ0I= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id 9B1EF3898C6A for ; Mon, 12 Sep 2022 16:45:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9B1EF3898C6A Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-13-4xTpAzpfMSyqsz8BzKnvhw-1; Mon, 12 Sep 2022 12:45:40 -0400 X-MC-Unique: 4xTpAzpfMSyqsz8BzKnvhw-1 Received: by mail-qk1-f199.google.com with SMTP id bk21-20020a05620a1a1500b006be9f844c59so7807613qkb.9 for ; Mon, 12 Sep 2022 09:45:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=YiVfJJKyMFRTPb30HBSDZspjGAT8X/f0ELDYdIUceD0=; b=K1+c3CvEw8B0emDgcrR/S9QvKHwHKXcfeRqL1s9/6J5A9dcpKCE0c9LMt+QVnN7rzS wes0cKEsrTmwdp0Pe1iyJJylwqLHERP7pDrzCIXKGZGaBrUSUN2xqIgYFD/qnlOpMf+h lF6kfy1Muz3iJmMrKlmU8vScwKGolw8k1TdZGGhx1Aka9E5/eIdxm9p2YNF4Xdi0AEn3 rGg0rR5eL2OoO8/zE2bS5POGqGuuKt8yDSzsBfAQolNL5BRTmXwcfpUTi0J+wSgA9JRV X75PLwt1OaT5sWTttQ8f0jc3Bdry/if/A5Lg+nvojuvAuQ9NhJbjSBjP7C5Wf+RVIpbR 21zQ== X-Gm-Message-State: ACgBeo0zmALIydNYCC6Zgb60echtPtocrV4SXaPqZj2FyL/r8Q6IPjD0 V7ZB9jfX5a/ng5nKRwwnkyAtgCRgkRZc8Y6qGDQT50QoZwK2wL8ov7fsonx1pRvOIlaHc1zj4pZ cYgC92mFR9M7D3D6mrfuhA09PEMKW8fg9A1ydT6maX07dpALDHj4R4m07KwXcw4qEdQ4= X-Received: by 2002:a05:622a:1650:b0:344:6ec4:739 with SMTP id y16-20020a05622a165000b003446ec40739mr24157481qtj.515.1663001140415; Mon, 12 Sep 2022 09:45:40 -0700 (PDT) X-Received: by 2002:a05:622a:1650:b0:344:6ec4:739 with SMTP id y16-20020a05622a165000b003446ec40739mr24157454qtj.515.1663001140158; Mon, 12 Sep 2022 09:45:40 -0700 (PDT) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id 17-20020ac85651000000b0035ba48c032asm6667350qtt.25.2022.09.12.09.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 09:45:39 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/4] libstdc++: Add already-accepted testcase [PR106320] Date: Mon, 12 Sep 2022 12:45:28 -0400 Message-Id: <20220912164531.1742034-1-ppalka@redhat.com> X-Mailer: git-send-email 2.37.3.542.gdd3f6c4cae MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Patrick Palka via Gcc-patches From: Patrick Palka Reply-To: Patrick Palka Cc: libstdc++@gcc.gnu.org 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?1743783210095236228?= X-GMAIL-MSGID: =?utf-8?q?1743783210095236228?= Although PR106320 only affected the 10 and 11 branches, and the testcase from there was already correctly accepted on trunk and the 12 branch, we should also add the testcase to 12/trunk for inter-branch consistency. Tested on x86_64-pc-linux-gnu, does this look OK for trunk/12? PR libstdc++/106320 libstdc++-v3/ChangeLog: * testsuite/std/ranges/adaptors/join.cc (test13): New test. --- libstdc++-v3/testsuite/std/ranges/adaptors/join.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc b/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc index 8986f718229..530ab6663b5 100644 --- a/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc +++ b/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc @@ -205,6 +205,18 @@ test12() }(); } +void +test13() +{ + // PR libstdc++/106320 + auto l = std::views::transform([](auto x) { + return x | std::views::transform([i=0](auto y) { + return y; + }); + }); + std::vector> v{{5, 6, 7}}; + v | l | std::views::join; +} int main() { @@ -220,4 +232,5 @@ main() test10(); test11(); test12(); + test13(); }