From patchwork Sat Jul 27 11:49:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1965640 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=UdzYJc7h; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4WWNGp1Z7nz1ybY for ; Sat, 27 Jul 2024 21:50:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 689D33858416 for ; Sat, 27 Jul 2024 11:50:24 +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 ESMTP id DE8543858408 for ; Sat, 27 Jul 2024 11:49:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE8543858408 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 DE8543858408 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=1722080970; cv=none; b=iCIDayw0Fsa501Lh1xolYmXSPrV3BK7VFdNF0CEmS2mTDxsBwCr7fL9UETlcxZAU64nWHJAdtNmRJailm91OFefZRTzgYZbjEdFd2+yqtnGVZYyKKy3V7bRRASQVQiMALiJTXWfTDmSBOhz6xGcWwBqtmRKBm3rvgjlsDBtyZr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722080970; c=relaxed/simple; bh=yshnk67t9fwcXyRR/DJHPnwdWkPE3468yRmKSHbZIM8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eEl8u4LGZnMKM/O9hfBBfaHAcomm74HPaXRGoFgAOvC8ALS7aUiQLJAP+hJHDWCoF0vVQUmMgB0bByCjRXavsAKi/pD1mCgNHZ/sLwS9BUZlyJ8f1sM9k6kFXnD5u5UbofELIAjKsBwvzxeOfQYiuDqmZ8198knNobMgdN0/6Ds= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722080967; 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=yQVMDL/uTH7fzqfo0rkOzdoh8zmwTXcvHm1PnaW/Lhw=; b=UdzYJc7hw5Z22qnGBuVFFU+8XhrN4VWiLxdwZ2QAa6HVAJyw93gwzQ9HPkWqONOstbE3DC b5/tQjMr15PUPYl7DHVji8pFmOGPBqsuoGgwN/v3eCZ4GOyMYyd0N/DJn4H3Wctte1Vmq5 3ZMjz+FJeYb/sGlqcTXGZiYLWvnrqGE= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-113-hjf1wdRRMPmbY3ITKOcaAA-1; Sat, 27 Jul 2024 07:49:25 -0400 X-MC-Unique: hjf1wdRRMPmbY3ITKOcaAA-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 43A0C1955D4A; Sat, 27 Jul 2024 11:49:24 +0000 (UTC) Received: from localhost (unknown [10.42.28.14]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9A09E1955D4A; Sat, 27 Jul 2024 11:49:22 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add comment noting LWG 3617 support Date: Sat, 27 Jul 2024 12:49:14 +0100 Message-ID: <20240727114920.460425-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 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_H3, RCVD_IN_MSPIKE_WL, 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.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 x86_64-linux. Pushed to trunk. -- >8 -- The resolution was implemented in r14-8752-g6f75149488b74a but I didn't add the usual _GLIBCXX_RESOLVE_LIB_DEFECTS comment. libstdc++-v3/ChangeLog: * include/bits/std_function.h: Add comment about LWG 3617 being supported. --- libstdc++-v3/include/bits/std_function.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/include/bits/std_function.h b/libstdc++-v3/include/bits/std_function.h index 79b59466fe9..bb8d8b9306c 100644 --- a/libstdc++-v3/include/bits/std_function.h +++ b/libstdc++-v3/include/bits/std_function.h @@ -698,6 +698,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { using type = _Res(_Args...); }; #if __cpp_explicit_this_parameter >= 202110L + // _GLIBCXX_RESOLVE_LIB_DEFECTS + // 3617. function/packaged_task deduction guides and deducing this template struct __function_guide_helper<_Res (*) (_Tp, _Args...) noexcept(_Nx)> { using type = _Res(_Args...); };