get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227801,
    "url": "http://patchwork.ozlabs.org/api/patches/2227801/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260424093259.1062164-1-tkaminsk@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": "<20260424093259.1062164-1-tkaminsk@redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-24T09:32:32",
    "name": "[committed] libstdc++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS comment for LWG4083.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "be22d4e2818dc1c37a95ae1f0d87f37e89db7fbc",
    "submitter": {
        "id": 90409,
        "url": "http://patchwork.ozlabs.org/api/people/90409/?format=api",
        "name": "Tomasz Kamiński",
        "email": "tkaminsk@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260424093259.1062164-1-tkaminsk@redhat.com/mbox/",
    "series": [
        {
            "id": 501328,
            "url": "http://patchwork.ozlabs.org/api/series/501328/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501328",
            "date": "2026-04-24T09:32:32",
            "name": "[committed] libstdc++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS comment for LWG4083.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501328/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227801/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227801/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=QxH8qYQB;\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=QxH8qYQB",
            "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.129.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 4g277M5D6Qz1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:33:35 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id DE82E4BB3BD3\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 09:33:33 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 7955B4BB3B93\n for <gcc-patches@gcc.gnu.org>; Fri, 24 Apr 2026 09:33:06 +0000 (GMT)",
            "from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-3-VjpappvXO_q7UQiSDgI7NA-1; Fri,\n 24 Apr 2026 05:33:02 -0400",
            "from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17])\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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 85C5819560B7; Fri, 24 Apr 2026 09:33:01 +0000 (UTC)",
            "from localhost (unknown [10.44.48.150])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id E601E1944CED; Fri, 24 Apr 2026 09:33:00 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org DE82E4BB3BD3",
            "OpenDKIM Filter v2.11.0 sourceware.org 7955B4BB3B93"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 7955B4BB3B93",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 7955B4BB3B93",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777023186; cv=none;\n b=bMiHsuQ4ySV84jh1f7AfMoD8UFdK5f3AbPQyEJnIboJBfQPE8T5b9zgMM+R1+VCKChX/TgoeobQP5yllfaGe28924w/3ZHATn67CixMbY1blqW0Swm+ZpW8EcmpZNn52Z81dCv5UtqvsqtCK8Z0cv7OnN8YiFG032exGP33OuXI=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777023186; c=relaxed/simple;\n bh=bpfE2S2T1bk9/bYqs4+Sen2XZ35CbyKO9hpHrWmaMcg=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=eTUfEiNPyYYYrzCA1uJteKIu2MFMuI7l2UD90B+e8IJq6TVVA7rVzt7cjfteqnlP9govS266MmHzA02Mw8a5K/s0inE4wWMMF566ohNdBTJSSluG3MFkIyDRWoPeNan0/W9J0RmALHcTr2RE/ELU7J+8JRf7tYBDYvGhVn+HzQ8=",
        "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=1777023186;\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=t1dGc1hFmrn7yyJWZyUoo8puJlM9Kl7KuYBxWkJXhpg=;\n b=QxH8qYQB2fR3a6hehwHzz/DWNiMc5bK1KN/xUuQIuv5sjhumC3qj46mY8Ti3+ZRIvM6TH0\n cVZoIUSZA5HBdYWkZDsjacQ3CQfuHACClYWXN7TmvlQvaZDTi3kXllXulJqKTyeEVIO+DH\n DKMzmXN6g6AtSloxeEvwVlnPX8Uk3P8=",
        "X-MC-Unique": "VjpappvXO_q7UQiSDgI7NA-1",
        "X-Mimecast-MFC-AGG-ID": "VjpappvXO_q7UQiSDgI7NA_1777023181",
        "From": "=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>",
        "To": "libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org",
        "Subject": "[committed] libstdc++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS comment for\n LWG4083.",
        "Date": "Fri, 24 Apr 2026 11:32:32 +0200",
        "Message-ID": "<20260424093259.1062164-1-tkaminsk@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.17",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "IhIX0m143-1-QLhCaoO-W790fnEFDdtBZvR5ECOEyNE_1777023181",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "content-type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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": "The LWG4083, \"views::as_rvalue should reject non-input ranges\" is resolved,\nas input_range<_Range> is implied by __detail::__can_as_rvalue_view<_Range>.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/std/ranges: Add comment for LWG4083.\n---\nTested on x86_64-linux. Pushed to trunk.\n\n libstdc++-v3/include/std/ranges | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges\nindex 4f2082487d1..9c7d639a154 100644\n--- a/libstdc++-v3/include/std/ranges\n+++ b/libstdc++-v3/include/std/ranges\n@@ -9093,6 +9093,9 @@ namespace views::__adaptor\n \tconstexpr auto\n \toperator() [[nodiscard]] (_Range&& __r) const\n \t{\n+\t  // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t  // 4083. views::as_rvalue should reject non-input ranges\n+\t  // input_range<_Range> is implied by __detail::__can_as_rvalue_view<_Range>\n \t  if constexpr (same_as<range_rvalue_reference_t<_Range>,\n \t\t\t\trange_reference_t<_Range>>)\n \t    return views::all(std::forward<_Range>(__r));\n",
    "prefixes": [
        "committed"
    ]
}