Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218074/?format=api
{ "id": 2218074, "url": "http://patchwork.ozlabs.org/api/patches/2218074/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/acuoTzNlpW9UtZ68@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": "<acuoTzNlpW9UtZ68@tucnak>", "list_archive_url": null, "date": "2026-03-31T10:56:15", "name": "testsuite: Add testcase for CWG3145 - Uniqueness of annotations", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "da1e72d1d38e1c8e289cf5f2ffed76f1eed69406", "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/acuoTzNlpW9UtZ68@tucnak/mbox/", "series": [ { "id": 498174, "url": "http://patchwork.ozlabs.org/api/series/498174/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498174", "date": "2026-03-31T10:56:15", "name": "testsuite: Add testcase for CWG3145 - Uniqueness of annotations", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498174/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218074/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218074/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=INtcO7Xb;\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=INtcO7Xb", "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 4flQ6W6B19z1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 21:56:51 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E1D5A4BA23EA\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 10:56:49 +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 29AB34BA2E27\n for <gcc-patches@gcc.gnu.org>; Tue, 31 Mar 2026 10:56:22 +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-693-TMrip4c8Mpii9MR-r3ox3Q-1; Tue,\n 31 Mar 2026 06:56:20 -0400", "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\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 89C8518002D6\n for <gcc-patches@gcc.gnu.org>; Tue, 31 Mar 2026 10:56:19 +0000 (UTC)", "from tucnak.zalov.cz (unknown [10.44.32.9])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id E2F321800361; Tue, 31 Mar 2026 10:56:18 +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 62VAuGZO4126783\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Tue, 31 Mar 2026 12:56:16 +0200", "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 62VAuFUN4126782;\n Tue, 31 Mar 2026 12:56:15 +0200" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org E1D5A4BA23EA", "OpenDKIM Filter v2.11.0 sourceware.org 29AB34BA2E27" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 29AB34BA2E27", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 29AB34BA2E27", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774954582; cv=none;\n b=o/neQ5DEF5CphP8YcuzLs4RfjVjOV0NUL2pDC0Xjdnpyhar8aRtsAIXGFF+/0m4WrwFDzBpnArhl5Q9H7PnXnDMni5wghBWh/NnsQvBP3erMk5F+FZvJmvpNQXAY0IegWfVZ+TogJMZ8dvima4sDngZGHrEir557Ei4XiL0Pn5E=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774954582; c=relaxed/simple;\n bh=ApWvixRcyHHn73CN07E7EKzZ4S4+IPf+g4Zg+2HIWWY=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=iPSNDVS2R7UTztaQoeZjJK6Tj3YGylPe/SBKMZ9/FAqbvBQpWKNFHY31bNe9/7ZO+NwtcXOdxsf4H25Wo2FDBCf+ZLvGwxKbZJuNpmQV+sfgT/cvyu2xNyqUHtzi8cU5bbaCN4Hh1ftpIbw4+E7ClAFFf8+K8ntc8tKR4g2OcZ4=", "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=1774954581;\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=ylW2mopf6Fmq1YMzoXGC1eo6faFhgm3U8+5Gs87whj0=;\n b=INtcO7Xb2sgq3SIQWmZztjyGJi4m8N4SkK7OSTZuQKzLDMZxFvljm9/akS1IQhyrAetL6c\n K3JwiM3QnJcX396bo0oqHgZuE29W2pTIM3fa6yI8910Xhp01DZ0EjOYdJ08fQPsj/lIwJ1\n sCMEijogX5Wj2oCaIPClbN9nsz4dbAk=", "X-MC-Unique": "TMrip4c8Mpii9MR-r3ox3Q-1", "X-Mimecast-MFC-AGG-ID": "TMrip4c8Mpii9MR-r3ox3Q_1774954579", "Date": "Tue, 31 Mar 2026 12:56:15 +0200", "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] testsuite: Add testcase for CWG3145 - Uniqueness of\n annotations", "Message-ID": "<acuoTzNlpW9UtZ68@tucnak>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "Itnjj3jjCkvAPOP9Re8KRTzqBe4Y-oBiue-QVQ54CtE_1774954579", "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\nWe already implement this, so just adding a testcase for it.\n\nOk for trunk?\n\n2026-03-31 Jakub Jelinek <jakub@redhat.com>\n\n\t* g++.dg/reflect/annotations16.C: New test.\n\n\n\tJakub", "diff": "--- gcc/testsuite/g++.dg/reflect/annotations16.C.jj\t2026-03-31 12:50:59.479789302 +0200\n+++ gcc/testsuite/g++.dg/reflect/annotations16.C\t2026-03-31 12:53:33.521177646 +0200\n@@ -0,0 +1,10 @@\n+// CWG3145 - Uniqueness of annotations\n+// { dg-do compile { target c++26 } }\n+// { dg-additional-options \"-freflection\" }\n+\n+#include <meta>\n+\n+template <int>\n+int x [[=1]];\n+static_assert (annotations_of (^^x<0>) != annotations_of (^^x<1>));\n+static_assert (annotations_of (^^x<42>) == annotations_of (^^x<42>));\n", "prefixes": [] }