get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226801,
    "url": "http://patchwork.ozlabs.org/api/patches/2226801/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.13@forge-stage.sourceware.org/",
    "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": "<bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.13@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T18:55:29",
    "name": "[v1,13/13] Last fixes",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "22d200e36b982b6550e440a7c946a4833f0c0a2f",
    "submitter": {
        "id": 93223,
        "url": "http://patchwork.ozlabs.org/api/people/93223/?format=api",
        "name": "tkaminsk via Sourceware Forge",
        "email": "forge-bot+tkaminsk@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.13@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 501097,
            "url": "http://patchwork.ozlabs.org/api/series/501097/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501097",
            "date": "2026-04-22T18:55:20",
            "name": "libstdc++: optional<T&> (P2988R12)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501097/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226801/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226801/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 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; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org",
            "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"
        ],
        "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 4g197X3DPpz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 06:00:24 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 7695D40A1EAC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:00:22 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id E71DD409EB4E\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:56:26 +0000 (GMT)",
            "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id 9BF67435BE\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:56:23 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 7695D40A1EAC",
            "OpenDKIM Filter v2.11.0 sourceware.org E71DD409EB4E"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E71DD409EB4E",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E71DD409EB4E",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776884187; cv=none;\n b=INAySZWZdhL+fXx5HHtxSJrs/WgBmd7ZWhvOKRCpJMHEBm/vveCZp6dw7QihmZTJRHt/F4P5BRUbzFKKXtV+rkGhXRAParYivLWjXyzAiWjrBjFeIKBJxBFkaWKeTB7B0Q/bZ/6Q8Kb3HRjzH0nCCqmnzJMkHdNf9QjcgdvUbAw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776884187; c=relaxed/simple;\n bh=eAw4AFBBD1NGWkcIFZSJWwmbjLJ8pbxXwU+Yl+lHx78=;\n h=From:Date:Subject:MIME-Version:To:Message-ID;\n b=MFXJq6f4CD0ZNBM8AVjGBEILUbgnz9X0ewLUfF8I40rIdYcZLNVkA0bfKhltaPrkgqyHSjfPGDGhGmYPMI9BaId+p06npRJfMQLO1IpQ3LnJcAOISvnX3BhWp7Bm2D5rqxKmAmrHgUHHx68zIV90EvRxU7oPc8+rKFKvTASCDXo=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "tkaminsk via Sourceware Forge\n <forge-bot+tkaminsk@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 18:55:29 +0000",
        "Subject": "[PATCH v1 13/13] Last fixes",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Message-ID": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.13@forge-stage.sourceware.org>",
        "X-Mailer": "batrachomyomachia",
        "X-Pull-Request-Organization": "gcc",
        "X-Pull-Request-Repository": "gcc-TEST",
        "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/107",
        "References": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/tkaminsk/gcc/commit/2544e7df6317740c5232f04912e2e0eba285a890",
        "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>",
        "Reply-To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n tkaminsk@gcc.gnu.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Tomasz Kamiński <tkaminsk@redhat.com>\n\n---\n .../testsuite/20_util/optional/make_optional-2.cc        | 2 ++\n .../testsuite/20_util/optional/make_optional_neg.cc      | 9 +++++++++\n libstdc++-v3/testsuite/20_util/optional/version.cc       | 2 +-\n 3 files changed, 12 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/libstdc++-v3/testsuite/20_util/optional/make_optional-2.cc b/libstdc++-v3/testsuite/20_util/optional/make_optional-2.cc\nindex f383b519c89a..0aa2ac5ed93b 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/make_optional-2.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/make_optional-2.cc\n@@ -70,7 +70,9 @@ static_assert( can_make_optional2<int, int&>::value );\n static_assert( noexcept(std::make_optional(i)) );\n static_assert( ! can_make_optional2<void, void>::value );\n static_assert( can_make_optional2<Cont, Cont>::value );\n+#if __cplusplus <= 202302\n static_assert( noexcept(std::make_optional<Cont>({})) );\n+#endif\n static_assert( can_make_optional2<Cont, const Cont&>::value );\n static_assert( ! noexcept(std::make_optional(c)) );\n static_assert( can_make_optional2<Cont, int>::value );\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/make_optional_neg.cc b/libstdc++-v3/testsuite/20_util/optional/make_optional_neg.cc\nindex b7772fc9a59b..09499477233b 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/make_optional_neg.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/make_optional_neg.cc\n@@ -1,5 +1,6 @@\n // { dg-do compile { target c++17 }  }\n \n+#include <initializer_list>\n #include <optional>\n \n struct S { int x; int* p; };\n@@ -7,5 +8,13 @@ int v;\n \n auto os1 = std::make_optional<S>({1, &v}); // { dg-error \"no matching function for\" \"\" { target c++26 } }\n \n+struct Cont\n+{\n+  Cont();\n+  Cont(std::initializer_list<int>, int);\n+};\n+\n+auto oc1 = std::make_optional<Cont>({}); // { dg-error \"no matching function for\" \"\" { target c++26 } }\n+\n // { dg-prune-output \"no type named 'type' in 'struct std::enable_if\" }\n // { dg-prune-output \"type/value mismatch at argument 1 in template parameter list\" }\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/version.cc b/libstdc++-v3/testsuite/20_util/optional/version.cc\nindex 96b9c8341984..ae9339a01af8 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/version.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/version.cc\n@@ -11,7 +11,7 @@\n # error \"Feature test macro for optional has wrong value for C++20 in <version>\"\n #elif __cplusplus == 202302L && __cpp_lib_optional != 202110L\n # error \"Feature test macro for optional has wrong value for C++23 in <version>\"\n-#elif __cplusplus > 202302L && __cpp_lib_optional != 202505L\n+#elif __cplusplus > 202302L && __cpp_lib_optional != 202506L\n # error \"Feature test macro for optional has wrong value for C++26 in <version>\"\n #endif\n \n",
    "prefixes": [
        "v1",
        "13/13"
    ]
}