get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2233387,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233387/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/afsJ0bCTssDW4TRP@tucnak/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<afsJ0bCTssDW4TRP@tucnak>",
    "date": "2026-05-06T09:28:49",
    "name": "testsuite: Add testcase for consteval-only type [PR125179]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "de4c13878aa9defffa2a5f952a781e960d751eae",
    "submitter": {
        "id": 671,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/671/?format=api",
        "name": "Jakub Jelinek",
        "email": "jakub@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/afsJ0bCTssDW4TRP@tucnak/mbox/",
    "series": [
        {
            "id": 502961,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502961/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502961",
            "date": "2026-05-06T09:28:49",
            "name": "testsuite: Add testcase for consteval-only type [PR125179]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502961/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2233387/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233387/checks/",
    "tags": {},
    "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=fghId9qj;\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=fghId9qj",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "sourceware.org; arc=none smtp.remote-ip=170.10.133.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 4g9XB64gK5z1y04\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 20:46:38 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 7C08E4BA2E1C\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 10:46:36 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 876E84BA23CB\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 09:28:58 +0000 (GMT)",
            "from mx-prod-mc-01.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-528-fkitGlnMP0m34zE-QwAZ1g-1; Wed,\n 06 May 2026 05:28:56 -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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id E45B91955EB3\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 09:28:52 +0000 (UTC)",
            "from tucnak.zalov.cz (unknown [10.44.48.41])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 43B2D1944CC4; Wed,  6 May 2026 09:28:52 +0000 (UTC)",
            "from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 6469SnMv240730\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Wed, 6 May 2026 11:28:49 +0200",
            "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 6469SnBu240729;\n Wed, 6 May 2026 11:28:49 +0200"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 7C08E4BA2E1C",
            "OpenDKIM Filter v2.11.0 sourceware.org 876E84BA23CB"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 876E84BA23CB",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 876E84BA23CB",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778059738; cv=none;\n b=pOcoVPaMiahvEEYQHVY9CaZuDfjhAk9GAayPvgSa0o7P2rC0Sz6nvVNRkZyGz2q0ybbFAFJioUdjvDsnKqshwPCSSg2EroUYQzOIshKSRU5lKWDCZMtecqkNJYEOHhLhLmgjybeteAkr8Rv8mndtU0SRvqVsAjWpRCRHLkfh81U=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778059738; c=relaxed/simple;\n bh=mem8fo2BV1jnQ8ECXga4Lkls0t+Pp9XxOoucUwDdrRU=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=RuRaUQJWoVy+MgGpm3FZ9bMU5AdiYJATNzZUyY4TfI0WDCvZAqd6hP8tycMqtp8LsiIBkDy02JqZFgK2QwzDOxtImm7RgK09UzUXA+myVpH9+4pmIAYASTq+vp9zZYb4nc6m8UQ0fXT2bFeP+hB8EyKiHCZCwGNCtELmkKC1B5M=",
        "ARC-Authentication-Results": "i=1; sourceware.org;\n dkim=pass (1024-bit key, unprotected)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=fghId9qj",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1778059738;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=zzzZJJVvJJOjQMMLyA5HchjPUwTTBI/6kFiGJzhFB9o=;\n b=fghId9qjF111fP4r6S1RsE2wBhGXkEkJVnITlNeWuplzFFoTaY6axY2hG6dZUlM3OEKTuu\n ZbqKdnv5yddQhQ8j9LRu4a+d3jzhXBOnqVzQ3QUPUN66s6HPNGHHhdoE7wRbuHFqKg+3cz\n xQ7HY6ne0OUyC8YN1GKrlPkClXsIo60=",
        "X-MC-Unique": "fkitGlnMP0m34zE-QwAZ1g-1",
        "X-Mimecast-MFC-AGG-ID": "fkitGlnMP0m34zE-QwAZ1g_1778059735",
        "Date": "Wed, 6 May 2026 11:28:49 +0200",
        "From": "Jakub Jelinek <jakub@redhat.com>",
        "To": "Jason Merrill <jason@redhat.com>, Patrick Palka <ppalka@redhat.com>",
        "Cc": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] testsuite: Add testcase for consteval-only type [PR125179]",
        "Message-ID": "<afsJ0bCTssDW4TRP@tucnak>",
        "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": "6nsy9ZxO6CklUI39rIQGD-abO4UNprUl1KtJRJUPTQc_1778059735",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "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": "Jakub Jelinek <jakub@redhat.com>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Hi!\n\nThe following testcase tests that the consteval-only computation is not\nquadratic.  With a loop of 50000 types, I believe this would be O(50000^2)\nin the earlier implementation and so would timeout.\n\nTested on x86_64-linux, ok for trunk?\n\n2026-05-06  Jakub Jelinek  <jakub@redhat.com>\n\n\tPR c++/125179\n\t* g++.dg/reflect/pr125179.C: New test.\n\n\n\tJakub",
    "diff": "--- gcc/testsuite/g++.dg/reflect/pr125179.C.jj\t2026-05-06 11:20:24.500255642 +0200\n+++ gcc/testsuite/g++.dg/reflect/pr125179.C\t2026-05-06 11:21:42.681970734 +0200\n@@ -0,0 +1,58 @@\n+// PR c++/125179\n+// { dg-do compile { target c++26 } }\n+// { dg-additional-options \"-freflection\" }\n+\n+#define A(x, y) \\\n+  struct S##x##0 { S##y##9 *a; }; \\\n+  struct S##x##1 { S##x##0 *a; }; \\\n+  struct S##x##2 { S##x##1 *a; }; \\\n+  struct S##x##3 { S##x##2 *a; }; \\\n+  struct S##x##4 { S##x##3 *a; }; \\\n+  struct S##x##5 { S##x##4 *a; }; \\\n+  struct S##x##6 { S##x##5 *a; }; \\\n+  struct S##x##7 { S##x##6 *a; }; \\\n+  struct S##x##8 { S##x##7 *a; }; \\\n+  struct S##x##9 { S##x##8 *a; }\n+#define B(x, y) \\\n+  A (x##0, y##9); \\\n+  A (x##1, x##0); \\\n+  A (x##2, x##1); \\\n+  A (x##3, x##2); \\\n+  A (x##4, x##3); \\\n+  A (x##5, x##4); \\\n+  A (x##6, x##5); \\\n+  A (x##7, x##6); \\\n+  A (x##8, x##7); \\\n+  A (x##9, x##8)\n+#define C(x, y) \\\n+  B (x##0, y##9); \\\n+  B (x##1, x##0); \\\n+  B (x##2, x##1); \\\n+  B (x##3, x##2); \\\n+  B (x##4, x##3); \\\n+  B (x##5, x##4); \\\n+  B (x##6, x##5); \\\n+  B (x##7, x##6); \\\n+  B (x##8, x##7); \\\n+  B (x##9, x##8)\n+#define D(x, y) \\\n+  C (x##0, y##9); \\\n+  C (x##1, x##0); \\\n+  C (x##2, x##1); \\\n+  C (x##3, x##2); \\\n+  C (x##4, x##3); \\\n+  C (x##5, x##4); \\\n+  C (x##6, x##5); \\\n+  C (x##7, x##6); \\\n+  C (x##8, x##7); \\\n+  C (x##9, x##8)\n+struct S09998;\n+struct S09999;\n+D (1, 0);\n+D (2, 1);\n+D (3, 2);\n+D (4, 3);\n+struct S09999 { S49999 *a; S09998 *b; };\n+S49999 a = { nullptr };\n+struct S09998 { decltype (^^::) a; };\n+constexpr S49999 b = { nullptr };\n",
    "prefixes": []
}