get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226780,
    "url": "http://patchwork.ozlabs.org/api/patches/2226780/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.9@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.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.9@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T18:49:46",
    "name": "[v1,09/10] Apply non-cv for all standards, add negative tests for static asserts.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "225d8a7f9d6f3becd0de731a49ce5bbe9fd441c7",
    "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.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.9@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 501094,
            "url": "http://patchwork.ozlabs.org/api/series/501094/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501094",
            "date": "2026-04-22T18:49:39",
            "name": "WIP: libstdc++: add support for cv-qualified types in atomic_ref (P3323R1)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501094/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226780/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226780/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 4g18ds5Brcz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 05:38:09 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E3C8D43216D5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 19:38:07 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id CB15D40A2C52\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:51:10 +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 5250943598\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:51:08 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org E3C8D43216D5",
            "OpenDKIM Filter v2.11.0 sourceware.org CB15D40A2C52"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org CB15D40A2C52",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org CB15D40A2C52",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776883870; cv=none;\n b=e7LzzWexMaFfTntI6DjwBlqdBZXvIZGWalsaWzodrxgCIATAhLu7q9hWCM4bURpbI5nuUyfGhNIiMzQmRTC3zhl5eDNgkC/XI56+y9z1IUaNE+B98AeSPd4RmpKWWQGcOX1FjO48AR1/u2i+TLLTgRDsoWmzeGPLCR5tOs5WtCk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776883870; c=relaxed/simple;\n bh=r+FFHReGHhW+uK+0y9bEvY4u2hgvwspWCbvj3K0kyes=;\n h=From:Date:Subject:MIME-Version:To:Message-ID;\n b=X/+vhP1IIQpRT1kmB6PnMJuWqiAEf18YFkuWLq2xVWmgKzuWpgGxKiJzkn/oJr4gpSiRvTcm5+MBNQ+xkcbRD0IEAcp2BYDS7I2onIjwYIZF2B1Fm6JtM5vT1ES2+tZM9QI/ddfFbeyu6q5vOLPju6ECKNUkqwVIYRtRYMBGBwc=",
        "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:49:46 +0000",
        "Subject": "[PATCH v1 09/10] Apply non-cv for all standards, add negative tests\n for static asserts.",
        "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.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.9@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/85",
        "References": "\n <bmm.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhup55wx16.gcc.gcc-TEST.tkaminsk.85.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/tkaminsk/gcc/commit/1da54a341fbb1fc0393e526a4978c82ae2149b8f",
        "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 libstdc++-v3/include/std/atomic               |  3 +-\n .../atomic/requirements/types_neg.cc          |  4 ++-\n .../29_atomics/atomic_ref/requirements_neg.cc | 34 +++++++++++++++++++\n 3 files changed, 39 insertions(+), 2 deletions(-)\n create mode 100644 libstdc++-v3/testsuite/29_atomics/atomic_ref/requirements_neg.cc",
    "diff": "diff --git a/libstdc++-v3/include/std/atomic b/libstdc++-v3/include/std/atomic\nindex cb94cb5e7ca2..17b4e61b3319 100644\n--- a/libstdc++-v3/include/std/atomic\n+++ b/libstdc++-v3/include/std/atomic\n@@ -216,13 +216,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n \n       static_assert(sizeof(_Tp) > 0,\n \t\t    \"Incomplete or zero-sized types are not supported\");\n+      static_assert(is_same_v<_Tp, remove_cv_t<_Tp>>,\n+\t\t    \"cv-qualified types are not supported\");\n \n #if __cplusplus > 201703L\n       static_assert(is_copy_constructible_v<_Tp>);\n       static_assert(is_move_constructible_v<_Tp>);\n       static_assert(is_copy_assignable_v<_Tp>);\n       static_assert(is_move_assignable_v<_Tp>);\n-      static_assert(is_same_v<_Tp, remove_cv_t<_Tp>>);\n #endif\n \n     public:\ndiff --git a/libstdc++-v3/testsuite/29_atomics/atomic/requirements/types_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic/requirements/types_neg.cc\nindex cfe44d255ca2..b9105481006f 100644\n--- a/libstdc++-v3/testsuite/29_atomics/atomic/requirements/types_neg.cc\n+++ b/libstdc++-v3/testsuite/29_atomics/atomic/requirements/types_neg.cc\n@@ -19,7 +19,9 @@\n \n #include <atomic>\n \n-std::atomic<const int> a; // { dg-error \"here\" }\n+std::atomic<const int> ca; // { dg-error \"here\" }\n+std::atomic<volatile int> va; // { dg-error \"here\" } \n+std::atomic<const volatile int> cva; // { dg-error \"here\" } \n // { dg-error \"assignment to read-only type\" \"\" { target *-*-* } 0 }\n \n struct MoveOnly\ndiff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/requirements_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/requirements_neg.cc\nnew file mode 100644\nindex 000000000000..9aa4123a0654\n--- /dev/null\n+++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/requirements_neg.cc\n@@ -0,0 +1,34 @@\n+// { dg-do compile { target c++20 } }\n+\n+#include <atomic>\n+\n+template<size_t N>\n+struct NonTrivial\n+{\n+  NonTrivial() = default;\n+  NonTrivial(NonTrivial const&) { }; \n+};\n+\n+template<size_t N>\n+NonTrivial<N> ntv;\n+\n+std::atomic_ref<NonTrivial<0>> nt(ntv<0>); // { dg-error \"here\" }\n+std::atomic_ref<const NonTrivial<1>> cnt(ntv<1>); // { dg-error \"here\" }\n+std::atomic_ref<volatile NonTrivial<2>> vnt(ntv<2>); // { dg-error \"here\" }\n+std::atomic_ref<const volatile NonTrivial<3>> cvnt(ntv<3>); // { dg-error \"here\" }\n+\n+template<size_t N>\n+struct NonLockFree\n+{\n+  char c[1024 + N];\n+};\n+\n+template<size_t N>\n+NonLockFree<N> nlfv;\n+\n+std::atomic_ref<NonLockFree<0>> nlf(nlfv<0>);\n+std::atomic_ref<const NonLockFree<1>> cnlf(nlfv<1>);\n+std::atomic_ref<volatile NonLockFree<2>> vnlf(nlfv<2>); // { dg-error \"here\" }\n+std::atomic_ref<const volatile NonLockFree<3>> cvnlf(nlfv<3>); // { dg-error \"here\" }\n+\n+// { dg-error \"static assertion failed\" \"\" { target *-*-* } 0 }\n",
    "prefixes": [
        "v1",
        "09/10"
    ]
}