get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810951,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/810951/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170907100927.GA69543@adacore.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20170907100927.GA69543@adacore.com>",
    "list_archive_url": null,
    "date": "2017-09-07T10:09:27",
    "name": "[Ada] Return raise with access class-wide interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "87b2927b79a39df6586848ad1cd0ced353c12e48",
    "submitter": {
        "id": 4418,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/4418/?format=api",
        "name": "Arnaud Charlet",
        "email": "charlet@adacore.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170907100927.GA69543@adacore.com/mbox/",
    "series": [
        {
            "id": 1973,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/1973/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=1973",
            "date": "2017-09-07T10:09:27",
            "name": "[Ada] Return raise with access class-wide interface",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1973/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810951/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810951/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461676-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461676-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"yJvUzq2l\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnx5R6Rgcz9t2c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 20:09:47 +1000 (AEST)",
            "(qmail 126803 invoked by alias); 7 Sep 2017 10:09:31 -0000",
            "(qmail 126537 invoked by uid 89); 7 Sep 2017 10:09:30 -0000",
            "from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tThu, 07 Sep 2017 10:09:29 +0000",
            "from localhost (localhost.localdomain [127.0.0.1])\tby\n\tfiltered-rock.gnat.com (Postfix) with ESMTP id F0CC6561A4;\n\tThu,  7 Sep 2017 06:09:27 -0400 (EDT)",
            "from rock.gnat.com ([127.0.0.1])\tby localhost (rock.gnat.com\n\t[127.0.0.1]) (amavisd-new, port 10024)\twith LMTP id\n\tK33IWb36Rr3N; Thu,  7 Sep 2017 06:09:27 -0400 (EDT)",
            "from tron.gnat.com (tron.gnat.com\n\t[IPv6:2620:20:4000:0:46a8:42ff:fe0e:e294])\tby rock.gnat.com\n\t(Postfix) with ESMTP id E0E1756179;\n\tThu,  7 Sep 2017 06:09:27 -0400 (EDT)",
            "by tron.gnat.com (Postfix, from userid 4192)\tid DFEDC4FC;\n\tThu,  7 Sep 2017 06:09:27 -0400 (EDT)"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; q=dns;\n\ts=default; b=aY6q0U3RVFvm7tktCBsK6vYWGvcAzAOoHdBQO8QgwMG7GGBBAx\n\tp4xYcZLHV8rYJ7+/BvumlfZCJtAAi6QG68MA7Zceg9/au5RkAwWKEpTPy/9YGEG6\n\t2PPfwj2E40dnNev0xSMe8Q8tc/Cxs8yHpvJfRIvcVnhDXwTZ3UvCYGyr0=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=W0Vg5vbzmpzLFnaK7FK+FeC06MA=; b=yJvUzq2lxUs+Idbq65jZ\n\tq1xXxKqVeqOtY9iwt/ih7L4c8J+L53ZUcgFlTw+y4yJNzRltnlFfYEnFio3uUhiR\n\tstropKw5b7lbSmy0uCIyaShOvsXAsRKYUXo/h7tMVBJ1SUjrhRR7RFRq3maxqcqy\n\tCX9Vlf0lTydb+pAHou/vDgk=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, RCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1105",
        "X-HELO": "rock.gnat.com",
        "Date": "Thu, 7 Sep 2017 06:09:27 -0400",
        "From": "Arnaud Charlet <charlet@adacore.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Bob Duff <duff@adacore.com>",
        "Subject": "[Ada] Return raise with access class-wide interface",
        "Message-ID": "<20170907100927.GA69543@adacore.com>",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed; boundary=\"Q68bSM7Ycu6FN28Q\"",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.5.23 (2014-03-12)"
    },
    "content": "This patches fixes a bug in which a function returns an anonymous access\ntype whose designated type is a class-wide interface type, and the\nreturn statement returns a raise expression, the compiler crashes.\n\nTested on x86_64-pc-linux-gnu, committed on trunk\n\n2017-09-07  Bob Duff  <duff@adacore.com>\n\n\t* sem_ch6.adb (Analyze_Function_Return): Do not\n\tinsert an explicit conversion to force the displacement of the\n\t\"this\" pointer to reference the secondary dispatch table in the\n\tcase where the return statement is returning a raise expression,\n\tas in \"return raise ...\".",
    "diff": "Index: sem_ch6.adb\n===================================================================\n--- sem_ch6.adb\t(revision 251835)\n+++ sem_ch6.adb\t(working copy)\n@@ -910,7 +910,7 @@\n             if Expander_Active\n               and then Serious_Errors_Detected = 0\n               and then Is_Access_Type (R_Type)\n-              and then Nkind (Expr) /= N_Null\n+              and then not Nkind_In (Expr, N_Null, N_Raise_Expression)\n               and then Is_Interface (Designated_Type (R_Type))\n               and then Is_Progenitor (Designated_Type (R_Type),\n                                       Designated_Type (Etype (Expr)))\n",
    "prefixes": [
        "Ada"
    ]
}