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: 1676991 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=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=OqwgiYGT; dkim-atps=neutral Received: from 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 4MRCCm01vYz1ynm for ; Tue, 13 Sep 2022 02:46:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC2EE394343C for ; Mon, 12 Sep 2022 16:46:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC2EE394343C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663001165; 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=OqwgiYGTRi8DJmhQB0MkphzQ7Lj9rDgI/RuBShY/1XeYG8FKbbG44xH6aEVtGAF3C iMoDz91C+5BylL7XRXMCEN+AF0mH35W1jM0PKaZT9gurd7bCi2UQDwXy7H+Vlrc9AZ kHFJ3al5BOV2hUssgTp+CJs5YzKfMVjqdX+1cy6E= 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-Google-Smtp-Source: AA6agR5qWgBy3QtoPJxFu7xmHM45wFgluW1ma+GRxnkav8zavDxefMXYvbEiYE4o62xvubA3IRb7Mw== 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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(); }