get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226664,
    "url": "http://patchwork.ozlabs.org/api/patches/2226664/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhunv1vldi.gcc.gcc-TEST.redi.40.1.1@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.hhunv1vldi.gcc.gcc-TEST.redi.40.1.1@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T18:03:18",
    "name": "[v1,1/1] libstdc++: Add poison pill for chrono::from_stream",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "fdedd6ef552a234922ee9975d6b54a5830ee1734",
    "submitter": {
        "id": 93210,
        "url": "http://patchwork.ozlabs.org/api/people/93210/?format=api",
        "name": "Jonathan Wakely via Sourceware Forge",
        "email": "forge-bot+redi@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhunv1vldi.gcc.gcc-TEST.redi.40.1.1@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 501063,
            "url": "http://patchwork.ozlabs.org/api/series/501063/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501063",
            "date": "2026-04-22T18:03:17",
            "name": "libstdc++: Add poison pill for chrono::from_stream",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501063/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226664/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226664/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=38.145.34.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 [38.145.34.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 4g16hW1Vz1z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 04:10:17 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id CFB7C4BBC0D4\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 18:10:15 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 43B034B9208A\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:04:43 +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 1B47E433BD\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:04:43 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org CFB7C4BBC0D4",
            "OpenDKIM Filter v2.11.0 sourceware.org 43B034B9208A"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 43B034B9208A",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 43B034B9208A",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776881083; cv=none;\n b=rZfGf4SmxRxFNVFYq5moG8NdgEz+y/UW8D7Ex3mb2QtGvjOlGx53slpv8MwxVoHgdU5ewaQlR44N4Tx3GtPa6Mmd8JbEU+hb9RvyiZ8MPz102ixrrUtxKbtiaQWp3f0TnLV5OSe3nep3z0lMpA4K9u2dCV+0cdDFleILzZRO4VQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776881083; c=relaxed/simple;\n bh=ZZv/bPLnNh4h70i8jVbXXo1mL+hQTto9VJGRJ4kLEc0=;\n h=From:Date:Subject:To:Message-ID;\n b=YQhLqtm/j4efe9xcykAid1KGUvTY1PXhLes7nDD4XR7Yd4COYsjFwt2VEeTP2kGdxIU1K8/8fRPFmS1MClUHuQYeodYs0pOAqTP6+lOea5Ho5+4jcW+eJjlGQUKaxhVaRuLMMrVS5gEfoe9919uXfb7SgVHhE5AvGBjobSzOS0g=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "Jonathan Wakely via Sourceware Forge\n <forge-bot+redi@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 18:03:18 +0000",
        "Subject": "[PATCH v1 1/1] libstdc++: Add poison pill for chrono::from_stream",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Message-ID": "\n <bmm.hhunv1vldi.gcc.gcc-TEST.redi.40.1.1@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/40",
        "References": "\n <bmm.hhunv1vldi.gcc.gcc-TEST.redi.40.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhunv1vldi.gcc.gcc-TEST.redi.40.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/redi/gcc/commit/5b8e44a0eff642731e54648f4ba3ff6afec9b0c1",
        "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>, redi@gcc.gnu.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Jonathan Wakely <jwakely@redhat.com>\n\nLWG 3956 (approved in Hagenberg, February 2025) decided that from_stream\nshould be found *only* by ADL, not ordinary unqualified lookup. Add a\npoison pill overload to chrono::__detail where the __parsable and\noperator>>(basic_istream&, _Parser) are defined. This ensures that when\nthey use from_stream unqualified ordinary lookup finds the poison pill,\nwhich is deleted, so a usable overload resolution result can only be\nfound by ADL.\n\nWe already have the std/time/parse/parse.cc test checking that ADL\nworks, so this doesn't add a new test.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/chrono_io.h (chrono::__detail::from_stream): Add\n\tdeleted function as poison pill for unqualified lookup.\n---\n libstdc++-v3/include/bits/chrono_io.h | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/libstdc++-v3/include/bits/chrono_io.h b/libstdc++-v3/include/bits/chrono_io.h\nindex 8c026586d4c9..c16b555df290 100644\n--- a/libstdc++-v3/include/bits/chrono_io.h\n+++ b/libstdc++-v3/include/bits/chrono_io.h\n@@ -3115,6 +3115,10 @@ namespace __detail\n \n namespace __detail\n {\n+  // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+  // 3956. chrono::parse uses from_stream as a customization point\n+  void from_stream() = delete;\n+\n   template<typename _Parsable, typename _CharT,\n \t   typename _Traits = std::char_traits<_CharT>,\n \t   typename... _OptArgs>\n",
    "prefixes": [
        "v1",
        "1/1"
    ]
}