get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232212,
    "url": "http://patchwork.ozlabs.org/api/patches/2232212/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260503213944.3444454-1-andrew.pinski@oss.qualcomm.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": "<20260503213944.3444454-1-andrew.pinski@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-05-03T21:39:44",
    "name": "[v2] c++: Fix handling of && after a class definition [PR65271]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "06eed00a5ac513c3ae94eb9c3e0cfacdcf7e0886",
    "submitter": {
        "id": 91428,
        "url": "http://patchwork.ozlabs.org/api/people/91428/?format=api",
        "name": "Andrew Pinski",
        "email": "andrew.pinski@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260503213944.3444454-1-andrew.pinski@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 502589,
            "url": "http://patchwork.ozlabs.org/api/series/502589/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502589",
            "date": "2026-05-03T21:39:44",
            "name": "[v2] c++: Fix handling of && after a class definition [PR65271]",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502589/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232212/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232212/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 (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Kxk/8GR0;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=GAxQiT3k;\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 (2048-bit key,\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Kxk/8GR0;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=GAxQiT3k",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com",
            "sourceware.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=205.220.180.131"
        ],
        "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 4g7yqn6n0qz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 07:40:20 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 344614B99F67\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  3 May 2026 21:40:18 +0000 (GMT)",
            "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\n by sourceware.org (Postfix) with ESMTPS id 7AEB94B99F58\n for <gcc-patches@gcc.gnu.org>; Sun,  3 May 2026 21:39:50 +0000 (GMT)",
            "from pps.filterd (m0279870.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 643L0MBY2341635\n for <gcc-patches@gcc.gnu.org>; Sun, 3 May 2026 21:39:49 GMT",
            "from mail-pl1-f197.google.com (mail-pl1-f197.google.com\n [209.85.214.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dw9bvkkcp-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <gcc-patches@gcc.gnu.org>; Sun, 03 May 2026 21:39:49 +0000 (GMT)",
            "by mail-pl1-f197.google.com with SMTP id\n d9443c01a7336-2adef9d486bso30456325ad.2\n for <gcc-patches@gcc.gnu.org>; Sun, 03 May 2026 14:39:49 -0700 (PDT)",
            "from xeond2.wrightpinski.org ([98.97.38.95])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ba10340c10sm27529765ad.61.2026.05.03.14.39.47\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 03 May 2026 14:39:47 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 344614B99F67",
            "OpenDKIM Filter v2.11.0 sourceware.org 7AEB94B99F58"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 7AEB94B99F58",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 7AEB94B99F58",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777844390; cv=none;\n b=QBJ2TOAAMOQbT3W0pDjU3RUYp1TJBDXGEqX8Dqp22H/eQC7k+dBElyZfvkjFr+RWZoL0QFn9SpVQey2Ta1+7v8D96GKtUPVGSU7rkRuMsbPdz53bLkZ7evoGWTFLBouSdyreFC2mFM/wvgR3FqdQfsRHBEnnrEFPqPek79JLmXw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777844390; c=relaxed/simple;\n bh=l5KiDnnIyC1rgr8NZTBgsi12cn9NPplfleCJKsN4yIc=;\n h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID:\n MIME-Version;\n b=c4rsa1ChZB3KIqtlmAQolfTq5PwA2NH7RbXKEK7cXQsLGShKrX+CpVb+x42h3pY5621HhwA9oPFti4BaChlSgYskeYS/HPW7LVCJyOq/ERhlKnknZEmV3+G7fVMEObeHL65+gjmEmqAOYwUPhOW2ETL+HNSIyDLMtkbsVX0dE70=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=qcppdkim1; bh=EfZcsp0s6nGJPTufAVLEQc+HTKoJKeR89T6\n oW3NX/M4=; b=Kxk/8GR0vb/RcS/OHsaktOGIkyp/r/m7zfwhspURuHyQLkF29XX\n f6+foCD84HYcv9L7OMmzWfw0oKHZODzoJjjTdZMUjKwnQ7yDewbZQK6TU+6EfNCZ\n Eq7z7gUFsS48kO0FfQEzOWJ4XMqO2k71+sSMZuzl8SaCQ3uNmDh2PicRam+ANA9e\n C2j0zWVKmy9lrKiQCsTlvjyMdjMgNJtVzfD7l7YX41AdJkCk3x8KvlcePtAXaxwD\n r0weZQ+hZ+CcmAI/Kl1wUT+dXiwtwDTvS6NTuDPs1mZvjnQjPXR1oZvmYfGUBepo\n VDpXv32EyCU3LC6ms5h5qvaCZmTwFKFEIzg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1777844388; x=1778449188; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=EfZcsp0s6nGJPTufAVLEQc+HTKoJKeR89T6oW3NX/M4=;\n b=GAxQiT3kmIFuXI1VgJHQNO2Z2Ckc+U4JTUy+vpCfxxpG7j7OKj6ya8jj1nQT+I2irp\n vb6/4yunvvhqj6k/T6M6iIRqRgMNzvGvwy50ilis7nPd2DIpVJkcLUGQO+poILlTHcVB\n BhJdi401FyxCTyQKZccmgCrolmTmPHDILU0MNoXBjMtwArDY1qPkdCDO6d7pvKr4ojIZ\n AbrxEJVW37NThTLJEm73RwjJ0SwSnQsfSkK9enhuEax9y+dx7ZxGQV3nZmUhllVES0Zx\n IARWrckq9Jj3xHujeAl426kUkW8HI+QhyJKsNjhaRRmxISgvCP9Zcml9ES2JTaZ6x4wk\n cQSw=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777844388; x=1778449188;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=EfZcsp0s6nGJPTufAVLEQc+HTKoJKeR89T6oW3NX/M4=;\n b=kcX7izXU8JXB9nC7BMqZOXpvjVrrCicAHwdiXfCg6r7vFNcFgs33RK8/cu4PT0xsUK\n uZGN4kBlPJzxtkwMFYrHYqpXjDpRzerHNNmQZUAF7EAMnMd/tLj/dAeyDzE8RfvAkcdd\n bpIt0upIWYNVq3Vu5VwYqw5+wfDegKe8BgZ4r8v0Bq0sn7acpEGjlfymQcnszKKuHi6q\n KuthouYhF9PsaayrxgN2t05UEaO2yuf7lQgOX/TBN/KarA4za90why6L74AHNxGUBfRt\n b7fL52tZNP7Kxc1xExRDgn4Huo0unV2mXiFEGxI8/4IgNXaRIAJIZtkhaE8qtghG8jN0\n 0NdQ==",
        "X-Gm-Message-State": "AOJu0YxkXRyLbmJF6dcfV7rx4jN9hPkxqzc4lkAbDLKWTK+k2yGioDHC\n 0UjHzsGdp7a3hYM1MSuIGjwMvv+5VWpawClSCWNZFjv23HgxI6C3k/MxX+8EvPaDCfO0f9xO14U\n aRrucuxITe78hRvQeVKAvZpk2tkOy1JLjXnGtvhOtQ6txMQDVwm7SoChSw4HkGNEriXul",
        "X-Gm-Gg": "AeBDiesXxJCUMZMgPMjriFDT23zExPlhJZEm9jzVMCa54MaMCer3ObyjpJeqB1vtT3b\n lBxWJwCzbTcz3+e309KZeIV336JDgsoLIpJJAK2nmt/Amx/oOl84TgQQCxWEScK+RP+KKV/uwAH\n aqsB4+JLu7TA9YR0b0Ndx1XCtK+9Xl69AsU1YUSrnXbjNTWD7W4hu+neta0brozdIqukbmxCAyi\n t8uKiDLBpL2QEU6V6YoiyYYpCD/5DlqxdeHy6Jfb465rDgfVxAY6HkH9nrwlnBtIWr9M0TglJSt\n +azUNn3u3jKlB8lPPlS8mXRv7LUv6YePGNoUypZfYPS4nF8Zc96X/zZlX7yJ3G4DY273Xehjp0F\n QpBeBqXJ65rTpBnRuciM4lgYxWszDwybe6OEG2+X8x8NFKCjwD7OL7hn88g==",
        "X-Received": [
            "by 2002:a17:902:cec7:b0:2b2:5491:e32f with SMTP id\n d9443c01a7336-2b9f2579e8dmr73138525ad.16.1777844388383;\n Sun, 03 May 2026 14:39:48 -0700 (PDT)",
            "by 2002:a17:902:cec7:b0:2b2:5491:e32f with SMTP id\n d9443c01a7336-2b9f2579e8dmr73138435ad.16.1777844387845;\n Sun, 03 May 2026 14:39:47 -0700 (PDT)"
        ],
        "From": "Andrew Pinski <andrew.pinski@oss.qualcomm.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Andrew Pinski <andrew.pinski@oss.qualcomm.com>",
        "Subject": "[PATCH v2] c++: Fix handling of && after a class definition [PR65271]",
        "Date": "Sun,  3 May 2026 14:39:44 -0700",
        "Message-ID": "<20260503213944.3444454-1-andrew.pinski@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-GUID": "gKieSAHiMkJFJ157HV-rJV4UYjmwhQo3",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTAzMDI0NCBTYWx0ZWRfX8RBjyEG4szmG\n 2qZitsZImLQCsOkVgpsLPhu7BpLQII2MfCg5gxs0zK5qWMIrVp88XvA0J7lc2AMl+/8+369TXNh\n ptg6UxjqTd/tRU7G6O7z6g0OBz3DvC+aDBuijy6r7h9H9FPUQL58LvuKsFbJxpkjKSwG+s+WKFd\n B8/4YSFaX1ebF4eiqE8QxEMuzcEV6ZkVFBeJ2VRexfidHo2Ut1BTFNk8YMdOflY5fN0W3IQ2hn3\n /198V36AO9pk/kgCwWu2pwcaAgOyCCeA1TAH55UpJti7LjhBzoF5LC9ocP7PnEDO18oURqD9iV2\n Jru6Jj9yzaLs9/aXBSnHbuIbzimN3eBxJxL/cAxtTQTEf0Q5/FdSwY/xPBNOQ2QetRNiXX1cPhJ\n IuEDkmq41PlOXsYVcZ1YS3c1p89uBSsobwJOEIsLRZ0iABe1nQ9SW0ti9t6LsgQ5xV5xWx5XFep\n p2YXHo7+FQU4hqL8Gqw==",
        "X-Authority-Analysis": "v=2.4 cv=dqLrzVg4 c=1 sm=1 tr=0 ts=69f7c0a5 cx=c_pps\n a=cmESyDAEBpBGqyK7t0alAg==:117 a=zSc8QJ3clla4Uiv8JlCtoQ==:17\n a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8\n a=ujSPe92eCx8LhRkjprUA:9 a=1OuFwYUASf3TG4hYMiVC:22",
        "X-Proofpoint-ORIG-GUID": "gKieSAHiMkJFJ157HV-rJV4UYjmwhQo3",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-05-03_07,2026-04-30_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 clxscore=1015 suspectscore=0 spamscore=0\n lowpriorityscore=0 bulkscore=0 malwarescore=0 adultscore=0 impostorscore=0\n phishscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2605030244",
        "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": "After r166977, we are wrongly rejecting:\nstruct {} && m = {};\nbecause our code to diagnose a missing ; after a class definition doesn't\nrealize that && can follow a class definition.\n\nThis is simlar in nature to what was done for `::` in r12-8304-g851031b2fcd5210b9676.\n\nBootstrapped and tested on x86_64-linux-gnu.\n\nChanges since v1:\n* v2: Remove the check on c++11 and add a few more testcases.\n\n\tPR c++/65271\n\ngcc/cp/ChangeLog:\n\n\t* parser.cc (cp_parser_class_specifier): Accept &&.\n\ngcc/testsuite/ChangeLog:\n\n\t* g++.dg/cpp0x/rv-decl1.C: New test.\n\nSigned-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>\n---\n gcc/cp/parser.cc                      | 1 +\n gcc/testsuite/g++.dg/cpp0x/rv-decl1.C | 6 ++++++\n 2 files changed, 7 insertions(+)\n create mode 100644 gcc/testsuite/g++.dg/cpp0x/rv-decl1.C",
    "diff": "diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc\nindex 3723aed1e69..53223d4843e 100644\n--- a/gcc/cp/parser.cc\n+++ b/gcc/cp/parser.cc\n@@ -29831,6 +29831,7 @@ cp_parser_class_specifier (cp_parser* parser)\n       case CPP_CLOSE_PAREN:\n       case CPP_COMMA:\n       case CPP_SCOPE:\n+      case CPP_AND_AND:\n         want_semicolon = false;\n         break;\n \ndiff --git a/gcc/testsuite/g++.dg/cpp0x/rv-decl1.C b/gcc/testsuite/g++.dg/cpp0x/rv-decl1.C\nnew file mode 100644\nindex 00000000000..9862ec3c11f\n--- /dev/null\n+++ b/gcc/testsuite/g++.dg/cpp0x/rv-decl1.C\n@@ -0,0 +1,6 @@\n+// PR c++/65271\n+// { dg-do compile { target c++11 } }\n+\n+struct {} && m = {};\n+union {} && m1 = {};\n+class {} && m2 = {};\n",
    "prefixes": [
        "v2"
    ]
}