get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197118,
    "url": "http://patchwork.ozlabs.org/api/patches/2197118/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/aZQF7fzfM49NwhLq@tucnak/",
    "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": "<aZQF7fzfM49NwhLq@tucnak>",
    "list_archive_url": null,
    "date": "2026-02-17T06:08:45",
    "name": "c++: Fix up is_type_alias2.C testcase for Solaris [PR124119]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3f8d8a1a30069d5b0dc515ec98e2d86aea0d47b0",
    "submitter": {
        "id": 671,
        "url": "http://patchwork.ozlabs.org/api/people/671/?format=api",
        "name": "Jakub Jelinek",
        "email": "jakub@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/aZQF7fzfM49NwhLq@tucnak/mbox/",
    "series": [
        {
            "id": 492378,
            "url": "http://patchwork.ozlabs.org/api/series/492378/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492378",
            "date": "2026-02-17T06:08:45",
            "name": "c++: Fix up is_type_alias2.C testcase for Solaris [PR124119]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492378/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197118/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197118/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=PZqlQ++H;\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=PZqlQ++H",
            "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 4fFTkB726sz1xwD\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 17:09:22 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 8EC024BAE7D9\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 06:09:20 +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 6B3B74BAD173\n for <gcc-patches@gcc.gnu.org>; Tue, 17 Feb 2026 06:08:52 +0000 (GMT)",
            "from mx-prod-mc-06.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-313-CDq72tHrO-ywQFQEdSswaw-1; Tue,\n 17 Feb 2026 01:08:50 -0500",
            "from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id BB6791800630\n for <gcc-patches@gcc.gnu.org>; Tue, 17 Feb 2026 06:08:49 +0000 (UTC)",
            "from tucnak.zalov.cz (unknown [10.45.224.10])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id D88A01800370; Tue, 17 Feb 2026 06:08:48 +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 61H68ja2775231\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Tue, 17 Feb 2026 07:08:45 +0100",
            "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 61H68jJ8775230;\n Tue, 17 Feb 2026 07:08:45 +0100"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 8EC024BAE7D9",
            "OpenDKIM Filter v2.11.0 sourceware.org 6B3B74BAD173"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 6B3B74BAD173",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 6B3B74BAD173",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771308532; cv=none;\n b=U+Y9F1vefQimvyjMFpU0nFjn0id2xV2grjiO1eu/1asmAjZT9Z3UxbyDpCjoD3tuV24Ev3fESijgFvciG/nrIRqm6VOIydaGfhOtMeDzYOuJXuLsYN92KSX20adjb5V84vBzStla4FmctuZYvGjdT28gOZGUjGBnEVJLCk8lJMo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771308532; c=relaxed/simple;\n bh=I1mWSgkQ4H0Jan5sB9/hyF2u2GdWLqhr62C2oEUqyoM=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=XkEPntSIhP6IvPtc3H9FeZAJruMbzJfVxTfX20klcsCMfM9r1+DXIt1arv9Tzc7r+WvcKbTBX/Axy0YEd1rvw8sGHP5S2WYQsMcKabbCYZRdaCh53mHHmEjtgKY7WfmnCvj0/hBG9K1GA5tJadqFeea58rLqwuOKHO9kqXDQ2wU=",
        "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=1771308532;\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=J5Qp9gKq07wDzvcI9ooY3Qo6pDWFF3mNF4MAylqC4pk=;\n b=PZqlQ++HQWG7hwmLusKUfC74QGcYJbRPA9ImOSLJF2P6IcYXnmgmu8w2VQKqCW5QFN9ZCo\n Sn/BMRY9k5oxVG4dmxBjv6CLoVBHmkBY6EFgIIAtBv+wL5lK9umVpLDeyiy2LhXlISHZ/9\n zbWcua3WcoH3l0lSQ9D6buNxbm84kBA=",
        "X-MC-Unique": "CDq72tHrO-ywQFQEdSswaw-1",
        "X-Mimecast-MFC-AGG-ID": "CDq72tHrO-ywQFQEdSswaw_1771308529",
        "Date": "Tue, 17 Feb 2026 07:08:45 +0100",
        "From": "Jakub Jelinek <jakub@redhat.com>",
        "To": "Jason Merrill <jason@redhat.com>, Marek Polacek <polacek@redhat.com>",
        "Cc": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] c++: Fix up is_type_alias2.C testcase for Solaris [PR124119]",
        "Message-ID": "<aZQF7fzfM49NwhLq@tucnak>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.93",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "helbWpLQmA66Jgcn4IQceDvD8yPM7P8y13jMofYiD_w_1771308529",
        "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\nGiven https://eel.is/c++draft/expr.reflect#5.1\nwe error on\ntypedef __SIZE_TYPE__ A;\nnamespace B {\n  using ::A;\n  typedef __SIZE_TYPE__ C;\n}\nusing B::C;\nconstexpr auto a = ^^A;\nconstexpr auto b = ^^B::A;\nconstexpr auto c = ^^B::C;\nconstexpr auto d = ^^C;\non ^^B::A and ^^C (note, clang++ fork only errors on ^^B::A).\nNow, whether size_t is\ntypedef __SIZE_TYPE__ size_t;\nnamespace std {\n  using ::size_t;\n}\nor\nnamespace std {\n  typedef __SIZE_TYPE__ size_t;\n}\nusing std::size_t;\ndepends on the target and clearly is the latter on Solaris, so testing\nwhether ^^size_t is a type alias doesn't work there - it is found as\na using decl there.\nSo  the following patch stops testing it for size_t and tests yet another\nuser alias (a typedef is already tested - ^^T).\n\nBootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?\n\n2026-02-17  Jakub Jelinek  <jakub@redhat.com>\n\n\tPR c++/124119\n\t* g++.dg/reflect/is_type_alias2.C (W): New type alias.\n\tAssert is_type_alias (^^W).  Don't assert is_type_alias (^^size_t).\n\n\n\tJakub",
    "diff": "--- gcc/testsuite/g++.dg/reflect/is_type_alias2.C.jj\t2026-01-15 16:33:47.011097891 +0100\n+++ gcc/testsuite/g++.dg/reflect/is_type_alias2.C\t2026-02-16 14:28:07.679720377 +0100\n@@ -15,6 +15,7 @@ template<typename T>\n using V = S<T*>;\n \n typedef int T;\n+using W = decltype (sizeof (0));\n \n static_assert (!is_type_alias (^^S<int>));\n static_assert (is_type_alias (^^U));\n@@ -22,7 +23,7 @@ static_assert (!is_type_alias (^^V));\n static_assert (is_type_alias (^^V<int>));\n static_assert (is_type_alias (^^T));\n static_assert (!is_type_alias (^^wchar_t));\n-static_assert (is_type_alias (^^size_t));\n+static_assert (is_type_alias (^^W));\n \n using A = void(int, int);\n static_assert (is_type_alias (^^A));\n",
    "prefixes": []
}