From patchwork Wed Mar 22 17:49:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 73588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2477599wrt; Wed, 22 Mar 2023 10:51:53 -0700 (PDT) X-Google-Smtp-Source: AK7set/LlwdTO2zba6qCF2DGs0/3RkOiUgkHjvZbX2vK07bRF8VwBYa6Vd02umcwUmyO8vzCCU0D X-Received: by 2002:a17:906:f8db:b0:8b1:7ae8:ba6f with SMTP id lh27-20020a170906f8db00b008b17ae8ba6fmr7809102ejb.16.1679507513530; Wed, 22 Mar 2023 10:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679507513; cv=none; d=google.com; s=arc-20160816; b=aZYl5S37MZxL/p+2nK+kE/GSVHY3YdJGTqGd1Y+DgcVzXawapR5QwDmdPtsLlS+IwF OM1WlwddxRMgdaJnZeWZwyWpigvJhwZLhGXiaRHwClqldy8mdU8NIqIY2dKzRUZT+3Ii VMIFvDXeAzEJdiuqAS4Qa0nyVqlBVc+OgRRSRfG7t/l52S0tpfhkl4SVJwRjViAhn++y uJOBBhSWxbfO3eXMUJOl9j24xpRLE33gUlJniyqBt8CueFQLuk1mwIeLRhK16xcjqFOL gNrNQ4H71a89A1Ca/106c0c8qmozNOB6S5MAaE/aR4M5aUO/tNUlj1ExNvPTPp2WvsJN I3RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=g7/0wvMHffjrPPCZu+gg2jdsG0Ysj0vtU7K1ypV/8lE=; b=iP+QR7xKADNypqGJGZA20qlYUxsK0Y1zbOTooZ/E1+eBWIxHGmkQa4lnZwTaB/HieI VuEzcqsEHY3C6vidbYXBcy5t8O1VCmpUf2QKq1X7pctl/uPIbbXf3e4V6pK7RWWdp9qi Bit5Xux98s0ao9+mSXLlmrk04eV1UXHeWaBnD0f5a9JikRdpaYuSQ2ACso9C5522/CLc Wzq0jhdtQpJ4a497UQnZLD0l5Akr2bgiyq/KqVeGonqXaMUEZr0hMs93tbzzkdaeG1us xCKuxW4RU0I44tmQhbcrO4hM5oTXnVQE+SApNd7v9m5a6vTdfDowfJh7osugAen4afYz zOfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=v45b1zy5; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id du12-20020a17090772cc00b00931f00ca4e3si17705307ejc.779.2023.03.22.10.51.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 10:51:53 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=v45b1zy5; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F718383E69A for ; Wed, 22 Mar 2023 17:50:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F718383E69A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679507442; bh=g7/0wvMHffjrPPCZu+gg2jdsG0Ysj0vtU7K1ypV/8lE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=v45b1zy5O8vsk7RstalvSp6Jhm12C23T1gCbzhX301Ajq9kKgWrnjM8+cvNLjrFSA UyXyzn1F+DeKg7PGPK09S8lrHK2K1K/4PyhCwXWUGrW+rU1Jm6bBoQ/LPWY0k35XPG 3+RUmcfrpWo3ISd2bPp15Lfj7UHY4aF+cXnz7W9s= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 72977385B533 for ; Wed, 22 Mar 2023 17:49:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72977385B533 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-t_MIXpokNwioYqpRW9WIBA-1; Wed, 22 Mar 2023 13:49:53 -0400 X-MC-Unique: t_MIXpokNwioYqpRW9WIBA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 400B41C0758F; Wed, 22 Mar 2023 17:49:53 +0000 (UTC) Received: from localhost (unknown [10.33.36.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A079140EBF4; Wed, 22 Mar 2023 17:49:52 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add comment to (LWG 3720) Date: Wed, 22 Mar 2023 17:49:52 +0000 Message-Id: <20230322174952.407973-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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_H2, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely 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?1761091270746875802?= X-GMAIL-MSGID: =?utf-8?q?1761091270746875802?= Tested powerpc64le-linux, pushed to trunk. -- >8-- libstdc++-v3/ChangeLog: * include/std/format: Add a comment noting that the resolution of LWG 3720 has been applied.. --- libstdc++-v3/include/std/format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format index b1e627048de..0e40bce5c15 100644 --- a/libstdc++-v3/include/std/format +++ b/libstdc++-v3/include/std/format @@ -3119,6 +3119,8 @@ namespace __format // 3721. Allow an arg-id with a value of zero for width else if constexpr (sizeof(_Tp) <= sizeof(long long)) { + // _GLIBCXX_RESOLVE_LIB_DEFECTS + // 3720. Restrict the valid types of arg-id for width and precision if constexpr (__is_unsigned_integer<_Tp>::value) return __arg; else if constexpr (__is_signed_integer<_Tp>::value)