get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196417,
    "url": "http://patchwork.ozlabs.org/api/patches/2196417/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260213201753.379712-1-polacek@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": "<20260213201753.379712-1-polacek@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-13T20:17:53",
    "name": "libstdc++: bit_cast and consteval-only types [PR124096]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c089591665c72d709b95ebd0b3b5b0a06437ccd4",
    "submitter": {
        "id": 14370,
        "url": "http://patchwork.ozlabs.org/api/people/14370/?format=api",
        "name": "Marek Polacek",
        "email": "polacek@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260213201753.379712-1-polacek@redhat.com/mbox/",
    "series": [
        {
            "id": 492135,
            "url": "http://patchwork.ozlabs.org/api/series/492135/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492135",
            "date": "2026-02-13T20:17:53",
            "name": "libstdc++: bit_cast and consteval-only types [PR124096]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492135/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196417/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196417/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=ZeKykmpa;\n\tdkim-atps=neutral",
            "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;\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=ZeKykmpa",
            "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 [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 4fCNmb130zz1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 07:19:09 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 9BF7B4BAD14E\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 20:19:07 +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 68BAE4BA23F1\n for <gcc-patches@gcc.gnu.org>; Fri, 13 Feb 2026 20:18:04 +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-195-gKzIuZhXNmmAtlwk4COD3g-1; Fri,\n 13 Feb 2026 15:18:02 -0500",
            "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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 8E7A81954117; Fri, 13 Feb 2026 20:18:01 +0000 (UTC)",
            "from pdp-11.redhat.com (unknown [10.22.64.240])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id EDB0F18003F5; Fri, 13 Feb 2026 20:18:00 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 9BF7B4BAD14E",
            "OpenDKIM Filter v2.11.0 sourceware.org 68BAE4BA23F1"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 68BAE4BA23F1",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 68BAE4BA23F1",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771013884; cv=none;\n b=YjmwSja6qXXYgPFYGYMH/mUxDNKHQG5iA01tBC59S/9FjLNetiLcQRANsUYJax2Vhm4QJS3HWk84KWM7fvc/MQryELU/9MPwTOiUs8wNP70O7UG0/oLql0r5jBnLd0ncdUUYbu2A6u/v+vhO1kiSH5FuLpKdGAtaZXg5ofc34e8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771013884; c=relaxed/simple;\n bh=8U6GKO61p4Qd5pJnQsRqswcyXy4I2LPfE+NBoaCFrNI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=L5SiUo8wZxq8miy+rNdnkugjoeXHBqANFs6p3m+41xtGMhxvPtSiJ4ZfXv19e+zWsISwVA8tMU6G8i/dzT0zBpvYqDpbXcTT4cGBDbyGrqw5KBNKPpdhWz6AtL2LokhmGghuR7Qk4VYKrb2z+A26YRZgU5ZkxXHhXPLAVUjxcxw=",
        "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=1771013884;\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=D5TVG7ZH8pUH7eE+FGXuMA3Z8hPEXQM1Y2N+2v/zyZQ=;\n b=ZeKykmpa1lGcUfqaH9NwoVvOrMou0k9SJFmMRK5/ObLeox+yur+QB6eYrcDjtOTHUn0jd5\n 0v3Ngaqh0+kXxR0Oiq6k0WZXBAUDckeLU3Ac1XZSkVF3jWzuwdMR6abag/9/yHTu+ogBnf\n kOcQGSNqrVi5CNa+bQPJ+dyE3w3bchQ=",
        "X-MC-Unique": "gKzIuZhXNmmAtlwk4COD3g-1",
        "X-Mimecast-MFC-AGG-ID": "gKzIuZhXNmmAtlwk4COD3g_1771013881",
        "From": "Marek Polacek <polacek@redhat.com>",
        "To": "GCC Patches <gcc-patches@gcc.gnu.org>,\n\tlibstdc++ <libstdc++@gcc.gnu.org>",
        "Subject": "[PATCH] libstdc++: bit_cast and consteval-only types [PR124096]",
        "Date": "Fri, 13 Feb 2026 15:17:53 -0500",
        "Message-ID": "<20260213201753.379712-1-polacek@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": "1Ect7doy_PEWXxkyw6-Afnm4MqdaeFIHKkjOOdiFRjQ_1771013881",
        "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": "Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?\n\n-- >8 --\n[bit.cast]/2: Mandates: Neither To nor From are consteval-only types\n\nbut we are not checking this, so the attached test compiled.\n\n\tPR libstdc++/124096\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/std/bit: Check that neither To nor From are consteval-only\n\ttypes.\n\t* testsuite/26_numerics/bit/bit.cast/124096.cc: New test.\n---\n libstdc++-v3/include/std/bit                        |  4 ++++\n .../testsuite/26_numerics/bit/bit.cast/124096.cc    | 13 +++++++++++++\n 2 files changed, 17 insertions(+)\n create mode 100644 libstdc++-v3/testsuite/26_numerics/bit/bit.cast/124096.cc\n\n\nbase-commit: 8a794643cc71301d96bb0e62c8d89494929fa0eb",
    "diff": "diff --git a/libstdc++-v3/include/std/bit b/libstdc++-v3/include/std/bit\nindex 6ea0f6eef83..f33acb999cf 100644\n--- a/libstdc++-v3/include/std/bit\n+++ b/libstdc++-v3/include/std/bit\n@@ -93,6 +93,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n       && is_trivially_copyable_v<_To> && is_trivially_copyable_v<_From>\n #endif\n     {\n+#if __cpp_impl_reflection >= 202506L\n+      static_assert(!is_consteval_only_v<_To> && !is_consteval_only_v<_From>,\n+\t\t    \"neither To nor From can be consteval-only types\");\n+#endif\n       return __builtin_bit_cast(_To, __from);\n     }\n #endif // __cpp_lib_bit_cast\ndiff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.cast/124096.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.cast/124096.cc\nnew file mode 100644\nindex 00000000000..12c93f712df\n--- /dev/null\n+++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.cast/124096.cc\n@@ -0,0 +1,13 @@\n+// PR libstdc++/124096\n+// { dg-do compile { target c++26 } }\n+// { dg-additional-options \"-freflection\" }\n+\n+#include <bit>\n+\n+consteval void\n+f ()\n+{\n+  (void) std::bit_cast<long long>(^^int);  // { dg-error \"here\" }\n+}\n+\n+// { dg-error \"static assertion failed:\" \"\" { target *-*-* } 0 }\n",
    "prefixes": []
}