get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218501/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218501,
    "url": "http://patchwork.ozlabs.org/api/patches/2218501/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260401100712.450618-1-jwakely@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260401100712.450618-1-jwakely@redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-01T10:06:55",
    "name": "libstdc++: Rename std::runtime_format for C++26 (P3953R3)",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c095cb2bd2bf364ffb848c72efda5eab06775ece",
    "submitter": {
        "id": 48004,
        "url": "http://patchwork.ozlabs.org/api/people/48004/?format=api",
        "name": "Jonathan Wakely",
        "email": "jwakely@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260401100712.450618-1-jwakely@redhat.com/mbox/",
    "series": [
        {
            "id": 498308,
            "url": "http://patchwork.ozlabs.org/api/series/498308/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498308",
            "date": "2026-04-01T10:06:55",
            "name": "libstdc++: Rename std::runtime_format for C++26 (P3953R3)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498308/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218501/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218501/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XMRDsnzH;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XMRDsnzH",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fm10N0Yz7z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 21:08:36 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3DE464BA23E5\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 10:08:34 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 8C3944BA23F7\n for <gcc-patches@gcc.gnu.org>; Wed,  1 Apr 2026 10:07:19 +0000 (GMT)",
            "from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-536--V5HJ681O6e7kqCrJ-Xp9w-1; Wed,\n 01 Apr 2026 06:07:16 -0400",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id DB10A18005BE; Wed,  1 Apr 2026 10:07:14 +0000 (UTC)",
            "from zen.kayari.org (unknown [10.44.48.64])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id C99931800594; Wed,  1 Apr 2026 10:07:13 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 3DE464BA23E5",
            "OpenDKIM Filter v2.11.0 sourceware.org 8C3944BA23F7"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 8C3944BA23F7",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 8C3944BA23F7",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775038039; cv=none;\n b=GYdN4ElwY9zTlUahYUCNl2QpUdZ3kk1+KrzoaHxYBXoim/hig/84nfFaP/a5X3OjQLNSt/Dw1yvgEgVREHqRn5FUrF0PiVBifNElXTK4Jlbifimj/uFWQ7WXMIc+VI97pHSmaS/kBg41UhyKWB1VaM3R9xzBzQbd7Ks2HsOUj7E=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775038039; c=relaxed/simple;\n bh=x0OUhipV4bJ15f9e2cjDSCpnsCWUMEdrejqcUriN29I=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=xkOeVZxsfNQzfMG6+Hf9XHe8Wmb70L5LhdOwBYlWncrcmJC/iUQChEg1y7id/WMAlWouzi8Vs/Ax170Cio3y2mupOt+P1Y2bknRG+jGuQuUWlCHTmhvdkcwgA42K/SaeEveaVLIkbMVmYYwQdJL9wxeoa6hymREyrDQe8BC5keA=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1775038039;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=YPw5gUAO59lVKlM0o26+8xzCRrQZjyfcQchRr5l6QGE=;\n b=XMRDsnzHH52P0xHdoBZKGt54lgMi0NQadcOIStBEH8LuYRR53s5l+i3U7GEF6Ig++f0Zsk\n 8rFsAAiYkgWFJYYO/npp2R4doZJ8d3oiTD+BBXzcjr/kqT7ulrmPnlMF9EDDOEIWt1F4Zo\n wKvGImZOEhUxORgvCesI0lpZLcMyrKg=",
        "X-MC-Unique": "-V5HJ681O6e7kqCrJ-Xp9w-1",
        "X-Mimecast-MFC-AGG-ID": "-V5HJ681O6e7kqCrJ-Xp9w_1775038035",
        "From": "Jonathan Wakely <jwakely@redhat.com>",
        "To": "gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org",
        "Subject": "[PATCH] libstdc++: Rename std::runtime_format for C++26 (P3953R3)",
        "Date": "Wed,  1 Apr 2026 11:06:55 +0100",
        "Message-ID": "<20260401100712.450618-1-jwakely@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "amhR62lsWJBql_dAa8ZBSNHL633Jtk8oC9gjfgJdhhQ_1775038035",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Last week in Croydon we approved P3953R3 to rename std::runtime_format\nfor C++26. The rationale is that with compile-time std::format, the name\nstd::runtime_format doesn't make sense. It's std::dynamic_format now\ninstead.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/chrono_io.h (__formatter_chrono::_S_empty_fs)\n\t(__formatter_chrono::_M_C_y_Y, __formatter_chrono::_M_D_x)\n\t(__formatter_chrono::_M_F, __formatter_chrono::_M_subsecs)\n\t(__formatter_chrono_info::_M_format_to): Use\n\t_Dynamic_format_string instead of _Runtime_format_string.\n\t* include/bits/version.def (format): Bump value.\n\t* include/bits/version.h: Regenerate.\n\t* include/std/format (_Runtime_format_string): Rename to\n\t_Dynamic_format_string.\n\t(runtime_format): Rename to dynamic_format.\n\t* include/std/print (println): Adjust comment to refer to\n\tdynamic_format instead of runtime_format.\n\t* testsuite/std/format/runtime_format.cc: Move to...\n\t* testsuite/std/format/dynamic_format.cc: ...here.\n---\n\nTested x86_64-linux.\n\n libstdc++-v3/include/bits/chrono_io.h         | 14 ++++++------\n libstdc++-v3/include/bits/version.def         |  3 ++-\n libstdc++-v3/include/bits/version.h           |  4 ++--\n libstdc++-v3/include/std/format               | 18 +++++++--------\n libstdc++-v3/include/std/print                |  2 +-\n .../{runtime_format.cc => dynamic_format.cc}  | 22 +++++++++----------\n 6 files changed, 32 insertions(+), 31 deletions(-)\n rename libstdc++-v3/testsuite/std/format/{runtime_format.cc => dynamic_format.cc} (51%)",
    "diff": "diff --git a/libstdc++-v3/include/bits/chrono_io.h b/libstdc++-v3/include/bits/chrono_io.h\nindex d152397891f2..f5a0a65a48da 100644\n--- a/libstdc++-v3/include/bits/chrono_io.h\n+++ b/libstdc++-v3/include/bits/chrono_io.h\n@@ -885,9 +885,9 @@ namespace __format\n       static constexpr const _CharT* _S_empty_spec = _S_chars + 18;\n \n       [[__gnu__::__always_inline__]]\n-      static _Runtime_format_string<_CharT>\n+      static _Dynamic_format_string<_CharT>\n       _S_empty_fs()\n-      { return _Runtime_format_string<_CharT>(_S_empty_spec); }\n+      { return _Dynamic_format_string<_CharT>(_S_empty_spec); }\n \n       static constexpr const _CharT* _S_weekdays[]\n       {\n@@ -1321,7 +1321,7 @@ namespace __format\n \n \t  if (__conv != 'y' && __ci >= 100) [[unlikely]]\n \t    {\n-\t      using _FmtStr = _Runtime_format_string<_CharT>;\n+\t      using _FmtStr = _Dynamic_format_string<_CharT>;\n \t      __string_view __fs = _S_minus_empty_spec + !__is_neg;\n \t      __out = std::format_to(std::move(__out), _FmtStr(__fs),\n \t\t\t\t     __conv == 'C' ? __ci : __yi);\n@@ -1360,7 +1360,7 @@ namespace __format\n \n \t  if (__mi >= 100 || __di >= 100) [[unlikely]]\n \t    {\n-\t      using _FmtStr = _Runtime_format_string<_CharT>;\n+\t      using _FmtStr = _Dynamic_format_string<_CharT>;\n \t      __string_view __fs = _GLIBCXX_WIDEN(\"{:02d}/{:02d}/{:02d}\");\n \t      __out = std::format_to(std::move(__out), _FmtStr(__fs),\n \t\t\t\t     __mi, __di, __yi);\n@@ -1416,7 +1416,7 @@ namespace __format\n \n \t  if (__yi >= 10000 || __mi >= 100 || __di >= 100) [[unlikely]]\n \t    {\n-\t      using _FmtStr = _Runtime_format_string<_CharT>;\n+\t      using _FmtStr = _Dynamic_format_string<_CharT>;\n \t      __string_view __fs\n \t\t= _GLIBCXX_WIDEN(\"-{:04d}-{:02d}-{:02d}\") + !__is_neg;\n \t      __out = std::format_to(std::move(__out), _FmtStr(__fs),\n@@ -1706,7 +1706,7 @@ namespace __format\n \t  else if (__prec > __max_prec)\n \t    __prec = __max_prec;\n \n-\t  using _FmtStr = _Runtime_format_string<_CharT>;\n+\t  using _FmtStr = _Dynamic_format_string<_CharT>;\n \t  return std::format_to(__out, _FmtStr(_GLIBCXX_WIDEN(\"{0:0{1}}\")),\n \t\t\t\t__subs, __prec);\n \t}\n@@ -2110,7 +2110,7 @@ namespace __format\n \t _Out\n \t _M_format_to(_Out __out, const chrono::sys_info& __si) const\n \t {\n-\t   using _FmtStr = _Runtime_format_string<_CharT>;\n+\t   using _FmtStr = _Dynamic_format_string<_CharT>;\n \t   // n.b. only decimal separator is locale dependent for specifiers\n \t   // used below, as sys_info uses seconds and minutes duration, the\n \t   // output is locale-independent.\ndiff --git a/libstdc++-v3/include/bits/version.def b/libstdc++-v3/include/bits/version.def\nindex 8c9ec854d3b2..434d38c8fbdf 100644\n--- a/libstdc++-v3/include/bits/version.def\n+++ b/libstdc++-v3/include/bits/version.def\n@@ -1321,8 +1321,9 @@ ftms = {\n   // 202305 P2757R3 Type checking format args\n   // 202306 P2637R3 Member visit\n   // 202311 P2918R2 Runtime format strings II\n+  // 202603 P3953R3 Rename std::runtime_format\n   values = {\n-    v = 202311;\n+    v = 202603;\n     cxxmin = 26;\n     hosted = yes;\n   };\ndiff --git a/libstdc++-v3/include/bits/version.h b/libstdc++-v3/include/bits/version.h\nindex 836aae02d773..bb2475087f1f 100644\n--- a/libstdc++-v3/include/bits/version.h\n+++ b/libstdc++-v3/include/bits/version.h\n@@ -1473,9 +1473,9 @@\n \n #if !defined(__cpp_lib_format)\n # if (__cplusplus >  202302L) && _GLIBCXX_HOSTED\n-#  define __glibcxx_format 202311L\n+#  define __glibcxx_format 202603L\n #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_format)\n-#   define __cpp_lib_format 202311L\n+#   define __cpp_lib_format 202603L\n #  endif\n # elif (__cplusplus >= 202002L) && _GLIBCXX_HOSTED\n #  define __glibcxx_format 202304L\ndiff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format\nindex 555781bbd274..2bcd06822b75 100644\n--- a/libstdc++-v3/include/std/format\n+++ b/libstdc++-v3/include/std/format\n@@ -125,14 +125,14 @@ namespace __format\n     using __format_context = basic_format_context<_Sink_iter<_CharT>, _CharT>;\n \n   template<typename _CharT>\n-    struct _Runtime_format_string\n+    struct _Dynamic_format_string\n     {\n       [[__gnu__::__always_inline__]]\n-      _Runtime_format_string(basic_string_view<_CharT> __s) noexcept\n+      _Dynamic_format_string(basic_string_view<_CharT> __s) noexcept\n       : _M_str(__s) { }\n \n-      _Runtime_format_string(const _Runtime_format_string&) = delete;\n-      void operator=(const _Runtime_format_string&) = delete;\n+      _Dynamic_format_string(const _Dynamic_format_string&) = delete;\n+      void operator=(const _Dynamic_format_string&) = delete;\n \n     private:\n       basic_string_view<_CharT> _M_str;\n@@ -173,7 +173,7 @@ namespace __format\n \tbasic_format_string(const _Tp& __s);\n \n       [[__gnu__::__always_inline__]]\n-      basic_format_string(__format::_Runtime_format_string<_CharT> __s) noexcept\n+      basic_format_string(__format::_Dynamic_format_string<_CharT> __s) noexcept\n       : _M_str(__s._M_str)\n       { }\n \n@@ -197,14 +197,14 @@ namespace __format\n \n #if __cpp_lib_format >= 202311L // >= C++26\n   [[__gnu__::__always_inline__]]\n-  inline __format::_Runtime_format_string<char>\n-  runtime_format(string_view __fmt) noexcept\n+  inline __format::_Dynamic_format_string<char>\n+  dynamic_format(string_view __fmt) noexcept\n   { return __fmt; }\n \n #ifdef _GLIBCXX_USE_WCHAR_T\n   [[__gnu__::__always_inline__]]\n-  inline __format::_Runtime_format_string<wchar_t>\n-  runtime_format(wstring_view __fmt) noexcept\n+  inline __format::_Dynamic_format_string<wchar_t>\n+  dynamic_format(wstring_view __fmt) noexcept\n   { return __fmt; }\n #endif\n #endif // C++26\ndiff --git a/libstdc++-v3/include/std/print b/libstdc++-v3/include/std/print\nindex 6ffd9a4b1b3f..1b9e810419f0 100644\n--- a/libstdc++-v3/include/std/print\n+++ b/libstdc++-v3/include/std/print\n@@ -352,7 +352,7 @@ namespace __format\n \t(enable_nonlocking_formatter_optimization<remove_cvref_t<_Args>> && ...);\n \n       // The standard wants us to call\n-      // print(stream, runtime_format(string(fmt.get()) + '\\n'), args...)\n+      // print(stream, dynamic_format(string(fmt.get()) + '\\n'), args...)\n       // here, but we can avoid that string concatenation in most cases,\n       // and we know what that would call, so we can call that directly.\n \ndiff --git a/libstdc++-v3/testsuite/std/format/runtime_format.cc b/libstdc++-v3/testsuite/std/format/dynamic_format.cc\nsimilarity index 51%\nrename from libstdc++-v3/testsuite/std/format/runtime_format.cc\nrename to libstdc++-v3/testsuite/std/format/dynamic_format.cc\nindex f2bfa5b434d2..fde2555ccb2f 100644\n--- a/libstdc++-v3/testsuite/std/format/runtime_format.cc\n+++ b/libstdc++-v3/testsuite/std/format/dynamic_format.cc\n@@ -7,7 +7,7 @@ void\n test_char()\n {\n   std::string fmt = \"{}\";\n-  auto s = std::format(std::runtime_format(fmt), 123);\n+  auto s = std::format(std::dynamic_format(fmt), 123);\n   VERIFY( s == \"123\" );\n }\n \n@@ -15,30 +15,30 @@ void\n test_wchar()\n {\n   std::wstring fmt = L\"{:#o}\";\n-  auto s = std::format(std::runtime_format(fmt), 456);\n+  auto s = std::format(std::dynamic_format(fmt), 456);\n   VERIFY( s == L\"0710\" );\n }\n \n void\n test_internal_api()\n {\n-  // Using _Runtime_format_string directly works even in C++20 mode.\n+  // Using _Dynamic_format_string directly works even in C++20 mode.\n   // This can be used internally by libstdc++.\n   std::string fmt = \"{:#x}\";\n-  auto s = std::format(std::__format::_Runtime_format_string<char>(fmt), 789);\n+  auto s = std::format(std::__format::_Dynamic_format_string<char>(fmt), 789);\n   VERIFY( s == \"0x315\" );\n }\n \n-static_assert( noexcept(std::format_string<>(std::runtime_format(\"\"))) );\n-static_assert( noexcept(std::wformat_string<>(std::runtime_format(L\"\"))) );\n-static_assert( noexcept(std::format_string<int>(std::runtime_format(\"\"))) );\n-static_assert( noexcept(std::wformat_string<char>(std::runtime_format(L\"\"))) );\n-// A format string can be constructed from the result of std::runtime_format\n+static_assert( noexcept(std::format_string<>(std::dynamic_format(\"\"))) );\n+static_assert( noexcept(std::wformat_string<>(std::dynamic_format(L\"\"))) );\n+static_assert( noexcept(std::format_string<int>(std::dynamic_format(\"\"))) );\n+static_assert( noexcept(std::wformat_string<char>(std::dynamic_format(L\"\"))) );\n+// A format string can be constructed from the result of std::dynamic_format\n // using copy elision, but cannot be constructed from an xvalue.\n static_assert( !std::is_constructible_v<std::format_string<>,\n-\t\t\t\t\tdecltype(std::runtime_format(\"\"))&&> );\n+\t\t\t\t\tdecltype(std::dynamic_format(\"\"))&&> );\n static_assert( !std::is_constructible_v<std::wformat_string<>,\n-\t\t\t\t\tdecltype(std::runtime_format(L\"\"))&&> );\n+\t\t\t\t\tdecltype(std::dynamic_format(L\"\"))&&> );\n \n int main()\n {\n",
    "prefixes": []
}