From patchwork Fri Feb 2 10:24:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1894462 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=S1zq0Wkg; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TRBjt0xsrz1yQ0 for ; Fri, 2 Feb 2024 21:25:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D36683857C70 for ; Fri, 2 Feb 2024 10:25:19 +0000 (GMT) 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 3AFFF38582B7 for ; Fri, 2 Feb 2024 10:24:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3AFFF38582B7 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3AFFF38582B7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706869485; cv=none; b=gmPxkUXj7p5xkQQLsxHu65dj1yjGcffEeEQ/pSbWTe6c8DeaPN9a5X1lGYaB8/LqaQfVZuKi2X4EPhL7gJblNxeatazhUDjrMFkzpeMP/s485V7OfjkGu1XyLjFmXmSAoly5//ETHj4CTRvhHq/QUzD6Nsl4Aa6/VWQxfCmZ7M0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706869485; c=relaxed/simple; bh=uB6APu9wzL/qlgr/RE+2h8y/1D9AzSY2eWsGt4tRfvQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=POnRCdebv2giNqrc3uimx8o/nurLeAq46zIH3pPxLkYHaAQBEwRFa0Bh5h+Sudssy7sP0y3iRqOiVteqf7mOpQz8de9J/4pfuTxEQtMIr0zXV0uBQ89zVOXsWqnLmky9uQ3vmeyJdAI+qp2Zn0nBSThXb7GIMmD1u34Ozgq3rGc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706869483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WLA7XYtZx4sNNjOIlCDiQfbFLXirE7VM2J4WCOwMLVU=; b=S1zq0WkggjyKVvHFdcDWXJ+gi4DXO7p145Ar9AmvXhCajtngjIQz61uTIbz4VDDIfMWxRk jGwNiXkC7YobdhwX76h97NtYejhU+RTp8At3E13PowIwEr7ZP1ZHj/ERw+fHvaOzaiFQ8W P6RZOnlKhFV8cL7ACb0F0tvmbWUmX8U= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-647-9y-senbBPB6ZhSb4_WY5yg-1; Fri, 02 Feb 2024 05:24:42 -0500 X-MC-Unique: 9y-senbBPB6ZhSb4_WY5yg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 69AB63869153; Fri, 2 Feb 2024 10:24:42 +0000 (UTC) Received: from localhost (unknown [10.42.28.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id 37A9F111F9; Fri, 2 Feb 2024 10:24:42 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove noexcept from std::generator::promise_type::yield_value Date: Fri, 2 Feb 2024 10:24:13 +0000 Message-ID: <20240202102437.2239783-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.2 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_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Tested aarch64-linux. Pushed to trunk. -- >8 -- This overload of std::generator::promise_type::yield_value calls things which might throw, so should not be noexcept. The noexcept was remove by LWG 3894. libstdc++-v3/ChangeLog: * include/std/generator (promise_type::yield_value): Remove noexcept from fourth overload, as per LWG 3894. --- libstdc++-v3/include/std/generator | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/std/generator b/libstdc++-v3/include/std/generator index e7ef5ddfdd3..87983ee5e7c 100644 --- a/libstdc++-v3/include/std/generator +++ b/libstdc++-v3/include/std/generator @@ -155,7 +155,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION requires convertible_to, _Yielded> auto yield_value(ranges::elements_of<_R, _Alloc> __r) - noexcept { auto __n = [] (allocator_arg_t, _Alloc, ranges::iterator_t<_R> __i,