From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 CC4053858433 for ; Wed, 22 Mar 2023 19:47:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC4053858433 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679514422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U3LykPJ5InMLuhD8b8+uMqoJSHOHS0NyTasTRTW2ZBs=; b=Ev/SWWHYyL8Iy/2Ois1CO6fdVFQJAM5Ic/fyVz4UuOz65+CgpoME4Ru8cwBaSGs6Gbl0yX abzFvaFqbppgQn9BMeFlgTXFIGFpg/mR9Wh/Adpsj4kRdBI7sJDGxgfYF09Beycac2bYbd AzDni+vz28XMi09KHJ2QZrK3JfKJtm8= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-653-kYrJ43E4NFGUslHs4jO_rA-1; Wed, 22 Mar 2023 15:47:00 -0400 X-MC-Unique: kYrJ43E4NFGUslHs4jO_rA-1 Received: by mail-lj1-f200.google.com with SMTP id a17-20020a05651c031100b0029c8878f9cbso3129786ljp.5 for ; Wed, 22 Mar 2023 12:47:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514419; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U3LykPJ5InMLuhD8b8+uMqoJSHOHS0NyTasTRTW2ZBs=; b=rwu9KO34fOzwL7J1uefCZKclNY+cMn56eYivYM9L9EOEg289GUurQngisD5mCMyUC5 eT8Aagg6PM35XsjawtvvZhvQSGC/kZrfxjobrghbD8t7GhkWuIpEJi1qsM9BTiWyX843 bBxkvq6Xc/JJw22JipA26yo3AK6Sqv7A/0OM0fycgkKpZ0KJF4ErpYOzx1jLIfG60B0y Ea8t8nPttjABQShiTDKTb1RcMMvLyqq9uhkV2M231QyhzPV3OrVq/InxQeQaH5ia7ppg IKpiDTJwuw6dKsTISyj+mwc1d84d0pWJf6G2k1s7DnBfEgk8XAYspT25hY7vp7s70vF5 GQGQ== X-Gm-Message-State: AO0yUKWPN3VwdZVBCcOjNxX6r/CC7YxdBLYKPqknjPr5gRDHE1KHdTLl ucoPbNHFt/+vZT7ELO89Mxt8BQ6JwXs5pRDM3eRHQBXjOgCOTyI9crthd45PzXZzOuTeGSwF4lP WGJ1CGYAdgydWju77OkZmLfoZZJtwhTLksw== X-Received: by 2002:a05:651c:4c9:b0:299:6e0e:3a1b with SMTP id e9-20020a05651c04c900b002996e0e3a1bmr1725904lji.4.1679514419201; Wed, 22 Mar 2023 12:46:59 -0700 (PDT) X-Google-Smtp-Source: AK7set9NdsKpMw2aSDGqroB8/Rh7Rdg9AQvEdDmKUKGTClooMvCvmTFZguqC1nk+lse+yqzOzLuPc7MxZbzKlQ12Hbc= X-Received: by 2002:a05:651c:4c9:b0:299:6e0e:3a1b with SMTP id e9-20020a05651c04c900b002996e0e3a1bmr1725889lji.4.1679514418853; Wed, 22 Mar 2023 12:46:58 -0700 (PDT) MIME-Version: 1.0 References: <20230322175003.408005-1-jwakely@redhat.com> In-Reply-To: From: Jonathan Wakely Date: Wed, 22 Mar 2023 19:46:47 +0000 Message-ID: Subject: Re: [committed] libstdc++: Add missing __cpp_lib_format macro to To: =?UTF-8?Q?Daniel_Kr=C3=BCgler?= Cc: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="00000000000054ce2a05f7826c01" X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,HTML_MESSAGE,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 List-Id: --00000000000054ce2a05f7826c01 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 22 Mar 2023 at 17:59, Daniel Kr=C3=BCgler wrote: > Am Mi., 22. M=C3=A4rz 2023 um 18:53 Uhr schrieb Jonathan Wakely via > Libstdc++ : > > > > Tested powerpc64le-linux, pushed to trunk. > > > > -- >8-- > > > > libstdc++-v3/ChangeLog: > > > > * include/std/version (__cpp_lib_format): Define. > > * testsuite/std/format/functions/format.cc: Check it. > > --- > > libstdc++-v3/include/std/version | 1 + > > .../testsuite/std/format/functions/format.cc | 15 +++++++++++++++ > > 2 files changed, 16 insertions(+) > > > > diff --git a/libstdc++-v3/include/std/version > b/libstdc++-v3/include/std/version > > index 25ebfc3e512..a19c39c6cdd 100644 > > --- a/libstdc++-v3/include/std/version > > +++ b/libstdc++-v3/include/std/version > > @@ -277,6 +277,7 @@ > > #define __cpp_lib_constexpr_utility 201811L > > #define __cpp_lib_constexpr_vector 201907L > > #define __cpp_lib_erase_if 202002L > > +#define __cpp_lib_format 202106L > > Shouldn't the value be 202207L? (This of-course of your conforming > completeness) > > Well spotted! The historical values listed in SD-6 are included in a comment in : // 201907 Text Formatting, Integration of chrono, printf corner cases. // 202106 std::format improvements. // 202110 Fixing locale handling in chrono formatters, generator-like types. // 202207 Encodings in localized formatting of chrono, basic-format-string. #define __cpp_lib_format 202106L The libstdc++ support only got as far as 202106 so far :-) (We actually do implement the support for generator-like types from P2418R2 and the std::basic_format_string change from P2508R1, but can't bump the value to 202207 until the other changes are supported too.) I might still find time to finish P2372R3 and P2419R2 for GCC 13, but no promises. --00000000000054ce2a05f7826c01--