get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226068,
    "url": "http://patchwork.ozlabs.org/api/patches/2226068/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260422073435.140670-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": "<20260422073435.140670-1-tkaminsk@redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-22T07:33:55",
    "name": "libstdc++: Accept data_handle_type by value in mdspan deduction guide.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4b97acf65cf37809d91d6a96d4c3cc4d3ac9d3c5",
    "submitter": {
        "id": 90409,
        "url": "http://patchwork.ozlabs.org/api/people/90409/?format=api",
        "name": "Tomasz Kaminski",
        "email": "tkaminsk@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260422073435.140670-1-tkaminsk@redhat.com/mbox/",
    "series": [
        {
            "id": 500934,
            "url": "http://patchwork.ozlabs.org/api/series/500934/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500934",
            "date": "2026-04-22T07:33:55",
            "name": "libstdc++: Accept data_handle_type by value in mdspan deduction guide.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500934/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226068/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226068/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=c31G9aP+;\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=c31G9aP+",
            "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 4g0rbn3YXFz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 17:35:16 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 2E3F54B9DB5F\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 07:35:14 +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 B80274BA23CB\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 07:34:42 +0000 (GMT)",
            "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-QtpR0j_WMjCCqQ1UGWE0rw-1; Wed,\n 22 Apr 2026 03:34:39 -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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 157EE180034F; Wed, 22 Apr 2026 07:34:38 +0000 (UTC)",
            "from localhost (unknown [10.44.48.183])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 77A5C1956095; Wed, 22 Apr 2026 07:34:37 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 2E3F54B9DB5F",
            "OpenDKIM Filter v2.11.0 sourceware.org B80274BA23CB"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org B80274BA23CB",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org B80274BA23CB",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776843282; cv=none;\n b=a7UdbdRonNtHQQLZNxUDb04vmb7SZ0RRIKwYUcqOJdtXVZhHWrqcKYhulTm0qjKTMIcm3CEpJYSPzJtG/8f2EvgaOkj+0OS0GlC2l5WfMSOi4ODn76rBytBNiPVhooAHIgnkrAmPy2hZm1/5eNqfebhV1Qx3PRxG5JYraxp0N08=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776843282; c=relaxed/simple;\n bh=XeQzDc3k2yarjsh2o2EHbn1X4phc05XSaUVEUkOvQ80=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=E0wVCnvzhDt8GQZzcliSQhH1/7KXHEZggnakWl58HYN55TanFbiSnVNAWi6M6Isd+KDVklm7WNQlyWcS6HirmNAJDtDHfzfaoKo1G15IjDaA62RBizIrwtunBWYPHKcMiuEh2dgU0De5d0pzXwWkleqpMRVzml1iQbojHmrU7Ls=",
        "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=1776843282;\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=s2Tj25ExIVYO93sxnLUbOFbkoDa2OrpHtICqv/Raxg0=;\n b=c31G9aP+n+eLIlObeSACbZaJxebbv8KqBZdBOJetM01nSsHES5D7iaZp0my+BA/DZm0vnE\n e6JEGeMMwOhRz12jkU+9rZrF14lX0YfM4JrR9Qmw5+ASjsOQyn41lZgUwLd3WWl0dBqUXz\n HcASNzRWLmDsLYxyOPRCifoX/wASgjs=",
        "X-MC-Unique": "QtpR0j_WMjCCqQ1UGWE0rw-1",
        "X-Mimecast-MFC-AGG-ID": "QtpR0j_WMjCCqQ1UGWE0rw_1776843278",
        "From": "=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>",
        "To": "libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] libstdc++: Accept data_handle_type by value in mdspan\n deduction guide.",
        "Date": "Wed, 22 Apr 2026 09:33:55 +0200",
        "Message-ID": "<20260422073435.140670-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": "Mj8Ie_TscFJZm7LrZ3vWkydvNHPlzuX0aLMAZbqjhQ0_1776843278",
        "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": "This makes the deduction guide accepting data_handle_type, mapping\nand accessor consistent with corresponding constructor.\nResolves LWG4511.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/std/mdspan (mdspan): Remove reference from\n\t_AccessorType::data_handle_type parameteter of deduction\n\tguide.\n\t* testsuite/23_containers/mdspan/mdspan.cc: New test.\n---\nTesting on x86_64-linux locally. All *mdspan* test passed in C++23,C++26\nmode and with modules. OK for trunk when all test passes?\n\n libstdc++-v3/include/std/mdspan               |  4 +++-\n .../testsuite/23_containers/mdspan/mdspan.cc  | 19 +++++++++++++++++++\n 2 files changed, 22 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/libstdc++-v3/include/std/mdspan b/libstdc++-v3/include/std/mdspan\nindex f30c5e83d16..fae4ce0baa2 100644\n--- a/libstdc++-v3/include/std/mdspan\n+++ b/libstdc++-v3/include/std/mdspan\n@@ -3267,8 +3267,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n     -> mdspan<_ElementType, typename _MappingType::extents_type,\n \t      typename _MappingType::layout_type>;\n \n+  // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+  // 4511. Inconsistency between the deduction guide of std::mdspan taking...\n   template<typename _MappingType, typename _AccessorType>\n-    mdspan(const typename _AccessorType::data_handle_type&, const _MappingType&,\n+    mdspan(typename _AccessorType::data_handle_type, const _MappingType&,\n \t   const _AccessorType&)\n     -> mdspan<typename _AccessorType::element_type,\n \t      typename _MappingType::extents_type,\ndiff --git a/libstdc++-v3/testsuite/23_containers/mdspan/mdspan.cc b/libstdc++-v3/testsuite/23_containers/mdspan/mdspan.cc\nindex 270b3f18daa..62ff7201cce 100644\n--- a/libstdc++-v3/testsuite/23_containers/mdspan/mdspan.cc\n+++ b/libstdc++-v3/testsuite/23_containers/mdspan/mdspan.cc\n@@ -404,6 +404,24 @@ template<typename CustomInt, bool ValidForPacks, bool ValidForArrays>\n     return true;\n   }\n \n+void\n+test_from_volatile_ptr_and_accessor()\n+{\n+  constexpr size_t n = 3*5*7;\n+  std::array<double, n> storage{};\n+  double* volatile vptr = storage.data();\n+  using Extents = std::extents<int, 3, 5, 7>;\n+\n+  auto exts = Extents{};\n+  auto m = std::layout_left::mapping(exts);\n+  auto a = std::default_accessor<double>{};\n+  auto md = std::mdspan(vptr, m, a);\n+\n+  assert_deduced_typedefs<double, Extents, std::layout_left>(md);\n+  VERIFY(md.data_handle() == storage.data());\n+  VERIFY(md.mapping() == m);\n+}\n+\n template<typename T, bool NothrowConstructible = true,\n \t bool NothrowAssignable = true>\n   class OpaqueAccessor\n@@ -757,6 +775,7 @@ main()\n   test_from_int_like<RValueInt, true, false>();\n   test_from_int_like<ConstLValueInt, false, true>();\n \n+  test_from_volatile_ptr_and_accessor();\n   test_from_opaque_accessor();\n   test_from_base_class_accessor();\n   test_from_mapping_like();\n",
    "prefixes": []
}