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: 195778 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp331609dyc; Fri, 2 Feb 2024 02:26:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg7hnD5fSIDPsK7zh++4jQPU4bYRl4mYIllQz6DQhXMOcd5JmiivhRG7/nSRhDE50S6O2T X-Received: by 2002:ae9:e913:0:b0:783:81b4:c156 with SMTP id x19-20020ae9e913000000b0078381b4c156mr5858261qkf.48.1706869569865; Fri, 02 Feb 2024 02:26:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706869569; cv=pass; d=google.com; s=arc-20160816; b=RhU0CbaMkUEDgcNjv3S+QmS3STR8hGtxoLsYtDIu3jHoF6IwW4WQ2WRu/lY8jt1Xdi /LmoXlaLkxB5SWK1dl9yZ0pcinRW9vx68CWL7TgsVFdkMDICqZMISgbn1XO6vVUqGw6W 7X3Ys5+42htNlC1bjZ3nng4H6Nc/d3K39icwM44jacK6lLibNgSySe37HYP7VDYvYNEM EfUOLFfTHNmGsiC2yEIPZu6uDnnrD/VLrGwYzuvrBGEjx/XVP6Ue7FG+Ng+HWRV8iTQt eUDFdqIpF4meZVzOCfaGVQMq3cLpmShcM2H5LcceTWUD99OFWFEyNuMg/HsGTm7L6qq9 f8gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=WLA7XYtZx4sNNjOIlCDiQfbFLXirE7VM2J4WCOwMLVU=; fh=WOIDR7knXgv6c3vGy9lOmljp6LKN2r395KtwlQtEqJA=; b=inVhBb9NzUEMRU8YAEBF7j0TnyEx7e6DIrI/5LQxRZrz7gjBjzsBd5sPPXt1QSqD8B +bRydtyZKGu8CfwsDL4rXBnWfOzHQ4VJBqjlW0e8QlxEeYM5zdVGK+4RElmJRiswn2AN fEYPpG82t/N9EthlHrAEfl4BMkiocHVl7smCSiCfVaqWD3x2dS6ssn6zlAWjs0WKKvnx +yVBle+lAukCX8bMFoNXjdC9IQvusvdp4Fr+LL6U//U1LMFcYz6XB+Wpqn8zVkWJOxMp /rb8LwfnJw1JQJDwyq6IQNl/K59XSPpfhqR97ZTmG2DL+LlAQndhsw8CA0QlzrzME+KK Fysg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S1zq0Wkg; arc=pass (i=1); 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=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCX43jAEINfhbQsdbbtNOcD5kVpe7sE896snbjFFexgQRK8dtIL0XJkfWYTQ35QxXi4Gj7ZY7oel04R8vyUXLo+3uh/Iog== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qp11-20020a05620a388b00b0078400fab7aesi1638861qkn.108.2024.02.02.02.26.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 02:26:09 -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=@redhat.com header.s=mimecast20190719 header.b=S1zq0Wkg; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8518A3857C44 for ; Fri, 2 Feb 2024 10:26:09 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789782465975558152 X-GMAIL-MSGID: 1789782465975558152 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,